Skip to content

Commit

Permalink
Display Code Coverage failed message
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianZaccaria authored and astefanutti committed Feb 5, 2024
1 parent a36f34a commit cfb7031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
run: |
coverage run -m --source=src pytest -v tests/unit_test.py
coverage=$(coverage report -m | tail -1 | tail -c 4 | head -c 2)
if (( $coverage < 90 )); then exit 1; else echo "Coverage passed, ${coverage}%"; fi
if (( $coverage < 90 )); then echo "Coverage failed at ${coverage}%"; exit 1; else echo "Coverage passed, ${coverage}%"; fi

0 comments on commit cfb7031

Please sign in to comment.