Skip to content

Commit

Permalink
Do not run pytest with coverage by default (#2198)
Browse files Browse the repository at this point in the history
  • Loading branch information
davfsa authored Mar 6, 2025
1 parent 542c018 commit b751da0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
run: |
uv sync --frozen --only-group nox
nox -s pytest
nox -s pytest-all-features -- --cov-append
nox -s pytest -- --coverage
nox -s pytest-all-features -- --coverage --cov-append
python scripts/ci/normalize_coverage.py
Expand Down
10 changes: 5 additions & 5 deletions pipelines/pytest.nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ def _pytest(
) -> None:
nox.sync(session, self=True, extras=extras_install, groups=["pytest"])

if "--skip-coverage" in session.posargs:
session.posargs.remove("--skip-coverage")
flags = RUN_FLAGS
else:
flags = [*RUN_FLAGS, *COVERAGE_FLAGS]
flags = RUN_FLAGS

if "--coverage" in session.posargs:
session.posargs.remove("--coverage")
flags.extend(COVERAGE_FLAGS)

session.run("python", *python_flags, "-m", "pytest", *flags, *session.posargs, config.TEST_PACKAGE)

0 comments on commit b751da0

Please sign in to comment.