Skip to content

Commit

Permalink
Test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jslane-h committed Dec 20, 2024
1 parent 2e4d397 commit 20ae9d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:
name: test_results
path: ${{ github.workspace }}/test_results

- name: Check test results
run: |
cat test_results/measure_check_output.txt
cat test_results/pytest_output.txt
if grep -q "FAILURES" test_results/pytest_output.txt; then
exit 1
fi
- name: Update measure.xmls
run: |
git config user.name "GitHub Actions Bot"
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ mkdir $GITHUB_WORKSPACE/test_results
openstudio measure -t ./lib/measures >> $GITHUB_WORKSPACE/test_results/measure_check_output.txt

for dir in $(find . -type f -name 'measure.py' -exec dirname {} \; | sort -u); do
pytest $dir
pytest $dir >> $GITHUB_WORKSPACE/test_results/pytest_output.txt
done

0 comments on commit 20ae9d3

Please sign in to comment.