Skip to content

Commit

Permalink
ci: add code coverage and uploading to codecov
Browse files Browse the repository at this point in the history
Fixes: #147
  • Loading branch information
abhidg committed Dec 10, 2024
1 parent 2c2ff39 commit 297e117
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ jobs:
run: make install-uv
- name: Lint and test
run: make
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tests: lint install
uv run pytest tests
uv run pytest --cov

install-uv:
curl -LsSf https://astral.sh/uv/0.4.10/install.sh | sh
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ dev-dependencies = [
"sphinx-book-theme>=1.1.3",
"sphinx>=8.1.3",
]

[tool.coverage.run]
omit = ["tests/*"]

0 comments on commit 297e117

Please sign in to comment.