Skip to content

Commit 0d445fe

Browse files
Add codecov for unit test coverage
1 parent 8537c2d commit 0d445fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: .github/workflows/unit-tests.yml

+5
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ jobs:
2929
coverage run -m --source=src pytest -v tests/unit_test.py
3030
coverage=$(coverage report -m | tail -1 | tail -c 4 | head -c 2)
3131
if (( $coverage < 90 )); then echo "Coverage failed at ${coverage}%"; exit 1; else echo "Coverage passed, ${coverage}%"; fi
32+
continue-on-error: true
33+
- name: Upload to Codecov
34+
uses: codecov/codecov-action@v4
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)