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
|
2023-10-20 21:37:04 +00:00
|
|
|
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
|
2023-10-20 21:37:04 +00:00
|
|
|
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")
|