diff --git a/noxfile.py b/noxfile.py index cda25f9d867ff9c5a949e687590afc91dd546a89..3f3c630c18edebc50f50c612dcc0c42f092aed5c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -117,8 +117,10 @@ def run_testsuite(session: nox.Session, coverage: bool = True): ] session.run(*args) - session.run("coverage", "html") - session.run("coverage", "xml") + + if coverage: + session.run("coverage", "html") + session.run("coverage", "xml") @nox.session(python=["3.10", "3.11", "3.12", "3.13"])