mirror of
https://github.com/aphrody-labs/pyo3.git
synced 2026-10-14 20:49:12 +00:00
* add CI job for `no_std` * don't fail-fast in `no_std` job * install rust toolchain with rust-src * forward no_std features to tests and examples
17 lines
413 B
Python
17 lines
413 B
Python
import argparse
|
|
|
|
import nox
|
|
|
|
|
|
@nox.session
|
|
def python(session: nox.Session):
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("--features")
|
|
args = parser.parse_args(session.posargs)
|
|
|
|
session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
|
|
if args.features:
|
|
session.env["MATURIN_PEP517_ARGS"] += f" --features={args.features}"
|
|
session.install(".[dev]")
|
|
session.run("pytest")
|