Skip to content

Commit

Permalink
Use $GITHUB_WORKSPACE in container
Browse files Browse the repository at this point in the history
  • Loading branch information
jslane-h committed Dec 4, 2024
1 parent 8e0cd62 commit 9e4f096
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ WORKDIR /app
# Copy the current directory contents into the container
COPY . /app

# Find directories containing measure.py and run tests
RUN ls
RUN mkdir -p /github /github/workspace
RUN openstudio measure -t ./lib/measures >> /github/workspace/measure_check_output.txt
# Find directories containing measure.py and run tests'
RUN echo $GITHUB_WORKSPACE
RUN openstudio measure -t ./lib/measures >> $GITHUB_WORKSPACE/measure_check_output.txt
RUN bash -c "\
for dir in \$(find . -type f -name 'measure.py' -exec dirname {} \; | sort -u); do \
pytest \$dir >> /github/workspace/pytest_output.txt; \
pytest \$dir >> $GITHUB_WORKSPACE/pytest_output.txt; \
done"

0 comments on commit 9e4f096

Please sign in to comment.