Skip to content

Commit

Permalink
MNT: Update pytest and coverage commands for the new src-layuot. [ski…
Browse files Browse the repository at this point in the history
…p ci]
  • Loading branch information
Taher Chegini committed Jul 5, 2024
1 parent e60f83f commit 79329a3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,7 @@ def tests(session: nox.Session) -> None:
speedup_dep = False

install_deps(session, ",".join(["test", *extras]))
session.run(
"pytest",
"--doctest-modules",
f"--cov={package.replace('-', '_')}",
"--cov-report",
"xml",
*session.posargs,
)
session.run("pytest", "--cov", "--cov-append", "--cov-report=xml", *session.posargs)
session.notify("cover")
if speedup_dep:
session.notify("speedup")
Expand All @@ -124,7 +117,7 @@ def speedup(session: nox.Session) -> None:
"""Run tests that require speedup deps."""
extras = get_extras()
install_deps(session, ",".join(["test", *extras]))
session.run("pytest", "--doctest-modules", "-m", "speedup", *session.posargs)
session.run("pytest", "-m", "speedup", *session.posargs)


@nox.session
Expand Down

0 comments on commit 79329a3

Please sign in to comment.