Skip to content

Commit

Permalink
docs(ci): add coverage and codecov upload
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Avery <[email protected]>
  • Loading branch information
psavery committed Jun 21, 2022
1 parent c07b0d2 commit e6f3181
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage:
status:
project: off
patch: off
9 changes: 8 additions & 1 deletion .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ jobs:
run: |
pip install .
pip install -r tests/requirements.txt
pytest -s ./tests
# Run the tests with coverage so we get a coverage report too
pip install coverage
coverage run --source . -m pytest .
# Print the coverage report
coverage report -m
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3

check-and-lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit e6f3181

Please sign in to comment.