From 7f65f7ab97b9f60379b057471078d172b4acf474 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 06:04:22 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Update=20codecov/codec?= =?UTF-8?q?ov-action=20action=20to=20v7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index e4739e0..0f32687 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -55,6 +55,6 @@ jobs: run: uv run --no-sync nox -s test - 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 }} From 3bfc880162a170d15ddb31d27910300d579210b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Paduszy=C5=84ski?= Date: Thu, 23 Jul 2026 08:54:39 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=85=20Update=20test=20coverage=20conf?= =?UTF-8?q?iguration=20and=20improve=20Nox=20test=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-package.yml | 2 +- noxfile.py | 2 +- pyproject.toml | 12 +++++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 0f32687..0c1fc2a 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -53,7 +53,7 @@ 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@v7.0.0 env: diff --git a/noxfile.py b/noxfile.py index 1a74516..28ba265 100644 --- a/noxfile.py +++ b/noxfile.py @@ -33,4 +33,4 @@ def ruff(session: nox.Session) -> None: ], ) def test(session: nox.Session) -> None: - session.run("pytest") + session.run("pytest", *session.posargs) diff --git a/pyproject.toml b/pyproject.toml index 83bf232..23eeef5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] @@ -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", @@ -171,3 +170,6 @@ exclude_also = [ "raise AssertionError", "raise NotImplementedError", ] +show_missing = true +skip_covered = true +skip_empty = true