Skip to content

Commit

Permalink
Add codecov for unit test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
varshaprasad96 authored and openshift-merge-bot[bot] committed Oct 7, 2024
1 parent 8537c2d commit 0d445fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ jobs:
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 echo "Coverage failed at ${coverage}%"; exit 1; else echo "Coverage passed, ${coverage}%"; fi
continue-on-error: true
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 0d445fe

Please sign in to comment.