Skip to content

Commit 2804ae2

Browse files
committed
no coverage check on other systems
1 parent 657e2e5 commit 2804ae2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ jobs:
4848
- name: Run Tests
4949
env:
5050
HEADLESS: 1
51+
NO_COVERAGE_CHECK: 1
5152
run: nox

noxfile.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
HEADLESS = bool(int(os.environ.get("HEADLESS", "0")))
10-
PIP_NO_PEP517 = bool(int(os.environ.get("PIP_NO_PEP517", "0")))
10+
NO_COVERAGE_CHECK = bool(int(os.environ.get("NO_COVERAGE_CHECK", "0")))
1111
BLACK_DEFAULT_EXCLUDE = r"\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist"
1212

1313

@@ -32,6 +32,8 @@ def test_python(session: Session) -> None:
3232
args = ["pytest", "tests"]
3333
if HEADLESS:
3434
args.append("--headless")
35+
if NO_COVERAGE_CHECK:
36+
args.append("--no-cov")
3537
session.run(*args)
3638

3739

0 commit comments

Comments
 (0)