aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/noxfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'noxfile.py')
-rw-r--r--noxfile.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/noxfile.py b/noxfile.py
new file mode 100644
index 0000000..d64f210
--- /dev/null
+++ b/noxfile.py
@@ -0,0 +1,17 @@
+import nox
+
+nox.options.sessions = ["test"]
+
+
+@nox.session
+def test(session: nox.Session):
+ session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
+ session.install(".[dev]")
+ 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")