pyo3/examples/word-count/noxfile.py

18 lines
387 B
Python
Raw Normal View History

2022-01-16 16:12:40 +00:00
import nox
2022-01-22 23:15:36 +00:00
nox.options.sessions = ["test"]
2022-01-16 16:12:40 +00:00
@nox.session
def test(session: nox.Session):
session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
session.install(".[dev]")
2022-01-16 16:12:40 +00:00
session.run("pytest")
2022-01-22 23:15:36 +00:00
@nox.session
def bench(session: nox.Session):
session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
session.install(".[dev]")
2022-01-22 23:15:36 +00:00
session.run("pytest", "--benchmark-enable")