pyo3/examples/word-count/noxfile.py

19 lines
380 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
2022-01-22 23:15:36 +00:00
def test(session):
2022-01-16 16:12:40 +00:00
session.install("-rrequirements-dev.txt")
2022-01-22 23:15:36 +00:00
session.install("maturin")
session.run_always("maturin", "develop")
2022-01-16 16:12:40 +00:00
session.run("pytest")
2022-01-22 23:15:36 +00:00
@nox.session
def bench(session):
session.install("-rrequirements-dev.txt")
session.install(".")
session.run("pytest", "--benchmark-enable")