Skip to content

Commit 4e6b808

Browse files
Add codecov for unit test coverage
1 parent 730b0ed commit 4e6b808

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/unit-tests.yml

+4
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ 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+
- name: Upload to Codecov
33+
uses: codecov/codecov-action@v3
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)