Skip to content

Commit

Permalink
MNT: Avoid running the cover session when running the speedup mark. […
Browse files Browse the repository at this point in the history
…skip ci]
  • Loading branch information
Taher Chegini committed May 27, 2024
1 parent 932cc3f commit a174ad1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,14 @@ def tests(session: nox.Session) -> None:
speedup_dep = False

install_deps(session, ",".join(["test", *extras]))
session.run("pytest", "--doctest-modules", *session.posargs)
session.run(
"pytest",
"--doctest-modules",
f"--cov={package.replace('-', '_')}",
"--cov-report",
"xml",
*session.posargs,
)
session.notify("cover")
if speedup_dep:
session.notify("speedup")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ skip = "__pycache__,_build,.mypy_cache,.git,./htmlcov,.nox,**/us_abbrs.py,cache"
ignore-words-list = "gage,gages,paramss,trough"

[tool.pytest.ini_options]
addopts = "--ignore=noxfile.py -n=auto -v --cov=py3dep --cov-report xml --durations=5"
addopts = "--ignore=noxfile.py -n=auto -v --durations=5"
doctest_optionflags = 'NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL NUMBER'
filterwarnings = [
"ignore:.*distutils.*",
Expand Down

0 comments on commit a174ad1

Please sign in to comment.