Skip to content

Commit

Permalink
add custom annotation warning for code coverage below threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Oct 27, 2023
1 parent d27fd99 commit b9d6c61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ jobs:
env:
METPLUS_TEST_OUTPUT_BASE: ${{ runner.workspace }}/pytest_output
- name: Generate coverage report
run: coverage report -m --fail-under=95
run: |
coverage report -m --fail-under=95
if [ $? != 0 ]; then
echo "::warning ::Code coverage is below 90%"
fi
if: always()
continue-on-error: true
- name: Run Coveralls
Expand Down

0 comments on commit b9d6c61

Please sign in to comment.