Skip to content

Commit 7e90b09

Browse files
committed
fix: use relative coverage paths for cross-OS combine
uv installs the project editable, so coverage records src/zeep/... paths instead of the site-packages paths tox produced. The per-OS absolute prefixes (/home/runner, /Users/runner, D:\a) then failed to unify on the coverage job ("No source for code"). Set relative_files = true so paths are stored relative to the repo root and combine cleanly across runners.
1 parent e12eb1f commit 7e90b09

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,13 @@ build-backend = "setuptools.build_meta"
6262
[tool.coverage.run]
6363
branch = true
6464
source = ["zeep"]
65+
# Store paths relative to the repo root so coverage data collected on
66+
# different OSes (uv installs the project editable -> src/zeep/...) can be
67+
# combined without absolute-path mismatches.
68+
relative_files = true
6569

6670
[tool.coverage.paths]
67-
source = ["src", "*/site-packages/"]
71+
source = ["src", "*/src", "*/site-packages"]
6872

6973
[tool.coverage.report]
7074
show_missing = true

0 commit comments

Comments
 (0)