Merge pull request #3629 from davidhewitt/pytests-debug

ci: fixup pytests to compile in debug
This commit is contained in:
David Hewitt 2023-12-05 05:30:57 +00:00 committed by GitHub
commit de6d8b7d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -6,14 +6,13 @@ nox.options.sessions = ["test"]
@nox.session
def test(session: nox.Session):
session.install(".[dev]")
session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
session.run_always("python", "-m", "pip", "install", "-v", ".[dev]")
try:
session.install("--only-binary=numpy", "numpy>=1.16")
except CommandFailed:
# No binary wheel for numpy available on this platform
pass
session.install("maturin")
session.run_always("maturin", "develop")
session.run("pytest", *session.posargs)