Skip to content

Commit a3b9397

Browse files
committed
Adjust coverage configuration.
1 parent 690949b commit a3b9397

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
python-versions: ${{ steps.baipp.outputs.supported_python_classifiers_json_array }}
3232

3333
tests:
34-
name: Tests on ${{ matrix.python-version }}
34+
name: Tests on Python ${{ matrix.python-version }}
3535
needs: build-package
3636
runs-on: ubuntu-latest
3737
strategy:

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def docs_spellcheck(session: nox.Session) -> None:
208208
clean()
209209

210210

211-
@nox.session(python=["3.12"], tags=["docs", "tests"])
211+
@nox.session(python=["3.12"], tags=["docs"])
212212
def docs_test(session: nox.Session) -> None:
213213
"""
214214
Run the code samples in the documentation with doctest, to ensure they are

pyproject.toml

+5
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,16 @@ skips = ["B101"]
5252
[tool.black]
5353
target-version = ["py38", "py39", "py310", "py311", "py312"]
5454

55+
[tool.coverage.paths]
56+
source = ["src", ".nox/tests_with_coverage*/**/site-packages"]
57+
5558
[tool.coverage.report]
5659
fail_under = 100
5760

5861
[tool.coverage.run]
62+
branch = true
5963
parallel = true
64+
source = ["webcolors"]
6065

6166
[tool.interrogate]
6267
ignore-init-module = true

0 commit comments

Comments
 (0)