From a3b9397859ab48544c6af4310d138904452f1007 Mon Sep 17 00:00:00 2001 From: James Bennett Date: Wed, 25 Sep 2024 22:26:46 -0700 Subject: [PATCH] Adjust coverage configuration. --- .github/workflows/ci.yml | 2 +- noxfile.py | 2 +- pyproject.toml | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ff1d99..295a8aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: python-versions: ${{ steps.baipp.outputs.supported_python_classifiers_json_array }} tests: - name: Tests on ${{ matrix.python-version }} + name: Tests on Python ${{ matrix.python-version }} needs: build-package runs-on: ubuntu-latest strategy: diff --git a/noxfile.py b/noxfile.py index b4e8a71..b78dcdd 100644 --- a/noxfile.py +++ b/noxfile.py @@ -208,7 +208,7 @@ def docs_spellcheck(session: nox.Session) -> None: clean() -@nox.session(python=["3.12"], tags=["docs", "tests"]) +@nox.session(python=["3.12"], tags=["docs"]) def docs_test(session: nox.Session) -> None: """ Run the code samples in the documentation with doctest, to ensure they are diff --git a/pyproject.toml b/pyproject.toml index 375d95c..2bc5416 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,11 +52,16 @@ skips = ["B101"] [tool.black] target-version = ["py38", "py39", "py310", "py311", "py312"] +[tool.coverage.paths] +source = ["src", ".nox/tests_with_coverage*/**/site-packages"] + [tool.coverage.report] fail_under = 100 [tool.coverage.run] +branch = true parallel = true +source = ["webcolors"] [tool.interrogate] ignore-init-module = true