diff options
Diffstat (limited to 'noxfile.py')
| -rw-r--r-- | noxfile.py | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -4,16 +4,14 @@ nox.options.sessions = ["test"] @nox.session -def test(session: nox.Session): - session.env["MATURIN_PEP517_ARGS"] = "--profile=dev" - session.install(".[dev]") - session.run("pytest") +def test(python='.venv/Scripts/python.exe', reuse_venv=True): + nox.session.env["MATURIN_PEP517_ARGS"] = "--profile=dev" + nox.session.install(".[dev]") + nox.session.run("pytest") @nox.session -def bench(session: nox.Session): - session.env["MATURIN_PEP517_ARGS"] = "--profile=dev" - session.install(".[dev]") - session.run("pytest", "--benchmark-enable") - - +def bench(python='.venv/Scripts/python.exe', reuse_venv=True): + nox.session.env["MATURIN_PEP517_ARGS"] = "--profile=dev" + nox.session.install(".[dev]") + nox.session.run("pytest", "--benchmark-enable") |
