Skip to content

Commit

Permalink
add codecov (#38)
Browse files Browse the repository at this point in the history
* add codecov

* add coverage to pytest

* add xml coverage report to pytest
  • Loading branch information
mshannon-sil authored Oct 5, 2023
1 parent 25631a7 commit adf9bb9
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ jobs:
npm install -g [email protected]
poetry run pyright
- name: Test with pytest
run: poetry run pytest
run: poetry run pytest --cov --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

publish:
name: Create Wheel
Expand Down
87 changes: 86 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ pytest = "^7.4.2"
black = "^23.3.0" # match the vscode extension
flake8 = "^3.9.2"
isort = "^5.9.3"
pytest-cov = "^4.1.0"
pytest-mockito = "^0.0.4"
ipykernel = "^6.7.0"
jupyter = "^1.0.0"
Expand Down

0 comments on commit adf9bb9

Please sign in to comment.