Skip to content

Commit 68bd4f2

Browse files
Add codecov
add code-coverage utility
1 parent 6c2f608 commit 68bd4f2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/unittest.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,10 @@ jobs:
2626
2727
- name: run tests using pytest
2828
run: |
29-
cd $GITHUB_WORKSPACE && pytest
29+
cd $GITHUB_WORKSPACE && pytest --cov --cov-report xml:coverage.xml
30+
31+
- name: Submit Coverage
32+
uses: codecov/codecov-action@v5
33+
with:
34+
fail_ci_if_error: true
35+
token: ${{secrets.CODECOV_TOKEN}}

0 commit comments

Comments
 (0)