Skip to content

Commit

Permalink
[CI] Fix 'Run test coverage statistics' step to exit if tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
gsakkis committed May 26, 2022
1 parent bbfb513 commit 3463771
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
id: stats
if: ${{ fromJSON(env.run_coverage) }}
run: |
pytest --disable-warnings --cov-report=term-missing --cov=tiledb tests/ | tee coverage.txt
pytest --disable-warnings --cov-report=term-missing --cov=tiledb tests/ > coverage.txt
cat coverage.txt
TEST_COVERAGE="$(grep '^TOTAL' coverage.txt | awk -v N=4 '{print $N}')"
echo "::set-output name=COVERAGE::$TEST_COVERAGE"
Expand Down

0 comments on commit 3463771

Please sign in to comment.