Skip to content

Commit

Permalink
no coverage check on other systems
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Jan 31, 2021
1 parent 657e2e5 commit 2804ae2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ jobs:
- name: Run Tests
env:
HEADLESS: 1
NO_COVERAGE_CHECK: 1
run: nox
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


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


Expand All @@ -32,6 +32,8 @@ def test_python(session: Session) -> None:
args = ["pytest", "tests"]
if HEADLESS:
args.append("--headless")
if NO_COVERAGE_CHECK:
args.append("--no-cov")
session.run(*args)


Expand Down

0 comments on commit 2804ae2

Please sign in to comment.