Skip to content

Commit b6b1401

Browse files
build(deps): bump pytest-cov from 6.3.0 to 7.0.0 (#913)
* build(deps): bump pytest-cov from 6.3.0 to 7.0.0 Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 6.3.0 to 7.0.0. - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest-cov@v6.3.0...v7.0.0) --- updated-dependencies: - dependency-name: pytest-cov dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * f --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mayeut <[email protected]>
1 parent d9efac0 commit b6b1401

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

noxfile.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ def _coverage(session: nox.Session) -> None:
9797
"CIBUILDWHEEL": "1",
9898
"CFLAGS": "-O0 -coverage",
9999
"LDFLAGS": "-coverage",
100-
"COVERAGE_PROCESS_START": "1",
101100
}
102101
update_env_macos(session, env)
103102
session.install("-e", ".", env=env)
@@ -123,15 +122,16 @@ def _coverage(session: nox.Session) -> None:
123122
threshold = 100.0 if "CI" in os.environ else 99.8
124123
session.run("coverage", "report", "--show-missing", f"--fail-under={threshold}")
125124
session.run("coverage", "xml", "-ocoverage-python.xml")
126-
gcovr_config = ("-r=.", "-e=base64", "-e=.base64_build")
127-
session.run(
128-
"gcovr",
129-
*gcovr_config,
130-
"--fail-under-line=90",
131-
"--txt",
132-
"-s",
133-
"--xml=coverage-native.xml",
134-
)
125+
if sys.platform.startswith("linux"):
126+
gcovr_config = ("-r=.", "-e=base64", "-e=.base64_build")
127+
session.run(
128+
"gcovr",
129+
*gcovr_config,
130+
"--fail-under-line=90",
131+
"--txt",
132+
"-s",
133+
"--xml=coverage-native.xml",
134+
)
135135

136136

137137
@nox.session(venv_backend="none")

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ environment = { AUDITWHEEL_PLAT="manylinux_2_31_${AUDITWHEEL_ARCH}" }
2121

2222
[tool.coverage.run]
2323
branch = true
24+
patch = ["subprocess"]
2425
omit = [
2526
"tests/conftest.py",
2627
"tests/test_benchmark.py",

requirements-coverage.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-r requirements-test.txt
22
gcovr==8.4
3-
pytest-cov==6.3.0
3+
pytest-cov==7.0.0
44
coverage==7.10.7

0 commit comments

Comments
 (0)