Skip to content

Commit

Permalink
Add codecov
Browse files Browse the repository at this point in the history
add code-coverage utility
  • Loading branch information
anish-mudaraddi committed Dec 10, 2024
1 parent 6c2f608 commit a3de3fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ jobs:
- name: run tests using pytest
run: |
cd $GITHUB_WORKSPACE && pytest
cd $GITHUB_WORKSPACE && pytest --cov --cov-report xml:coverage.xml
- name: Submit Coverage
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{secrets.CODECOV_TOKEN}}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pytest
pytest-cov
pylint
openstacksdk
pre-commit
Expand Down

0 comments on commit a3de3fd

Please sign in to comment.