Skip to content

Commit

Permalink
Added coverage reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaVili committed Nov 21, 2024
1 parent 5c45441 commit 07bea7f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,11 @@ jobs:
uv pip install --system tox
- name: Run tests with tox-uv
run: tox -e py
run: tox -e py

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ dev = [
"ruff>=0.7.3",
"mypy>=1.13.0",
"pre-commit-uv>=4.1.4",
"tox-uv>=1.16.0",
]
[tool.mypy]
plugins = ['pydantic.mypy']
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ deps =
allowlist_externals =
pytest
commands =
pytest {posargs:tests} --cov
pytest {posargs:tests} --cov --cov-report=xml

[testenv:lint]
description = run linters
Expand Down

0 comments on commit 07bea7f

Please sign in to comment.