Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
uv sync --only-group=nox --locked
- name: Run Nox 🦊
run:
uv run --no-sync nox -s test
uv run --no-sync nox -s test -- --cov --cov-append --cov-report=xml:coverage.xml
- name: Upload coverage reports to Codecov ⛱️
uses: codecov/codecov-action@v5.5.5
uses: codecov/codecov-action@v7.0.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ def ruff(session: nox.Session) -> None:
],
)
def test(session: nox.Session) -> None:
session.run("pytest")
session.run("pytest", *session.posargs)
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ addopts = [
"-ra",
"-q",
"--strict-markers",
"--cov=src/",
"--cov-branch",
"--cov-append",
"--cov-report=term-missing:skip-covered",
"--cov-report=xml",
"--suppress-no-test-exit-code",
]
pythonpath = [".", "src"]
Expand All @@ -157,6 +152,10 @@ testpaths = ["tests/"]
# Coverage.py
# https://coverage.readthedocs.io/en/latest/config.html

[tool.coverage.run]
branch = true
source = ["src/"]

[tool.coverage.report]
exclude_also = [
"@(abc\\.)?abstractmethod",
Expand All @@ -171,3 +170,6 @@ exclude_also = [
"raise AssertionError",
"raise NotImplementedError",
]
show_missing = true
skip_covered = true
skip_empty = true