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
20 changes: 10 additions & 10 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def _coverage(session: nox.Session) -> None:
"CIBUILDWHEEL": "1",
"CFLAGS": "-O0 -coverage",
"LDFLAGS": "-coverage",
"COVERAGE_PROCESS_START": "1",
}
update_env_macos(session, env)
session.install("-e", ".", env=env)
Expand All @@ -123,15 +122,16 @@ def _coverage(session: nox.Session) -> None:
threshold = 100.0 if "CI" in os.environ else 99.8
session.run("coverage", "report", "--show-missing", f"--fail-under={threshold}")
session.run("coverage", "xml", "-ocoverage-python.xml")
gcovr_config = ("-r=.", "-e=base64", "-e=.base64_build")
session.run(
"gcovr",
*gcovr_config,
"--fail-under-line=90",
"--txt",
"-s",
"--xml=coverage-native.xml",
)
if sys.platform.startswith("linux"):
gcovr_config = ("-r=.", "-e=base64", "-e=.base64_build")
session.run(
"gcovr",
*gcovr_config,
"--fail-under-line=90",
"--txt",
"-s",
"--xml=coverage-native.xml",
)


@nox.session(venv_backend="none")
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ environment = { AUDITWHEEL_PLAT="manylinux_2_31_${AUDITWHEEL_ARCH}" }

[tool.coverage.run]
branch = true
patch = ["subprocess"]
omit = [
"tests/conftest.py",
"tests/test_benchmark.py",
Expand Down
2 changes: 1 addition & 1 deletion requirements-coverage.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r requirements-test.txt
gcovr==8.4
pytest-cov==6.3.0
pytest-cov==7.0.0
coverage==7.10.7
Loading