pyo3/pytests/noxfile.py
2022-02-05 10:16:46 +00:00

19 lines
418 B
Python

import nox
nox.options.sessions = ["test"]
@nox.session
def test(session):
session.install("-rrequirements-dev.txt")
session.install("maturin")
session.run_always("maturin", "develop")
session.run("pytest")
@nox.session
def bench(session):
session.install("-rrequirements-dev.txt")
session.install(".")
session.run("pytest", "--benchmark-enable", "--benchmark-only", *session.posargs)