Skip to content

Commit

Permalink
Run Python tests in CI with debug rust builds (#11406)
Browse files Browse the repository at this point in the history
fixes #11322
  • Loading branch information
alex authored Aug 8, 2024
1 parent 33b9f5e commit e2633bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
- {VERSION: "3.12", NOXSESSION: "rust,tests", RUST: "1.65.0"}
- {VERSION: "3.12", NOXSESSION: "rust,tests", RUST: "beta"}
- {VERSION: "3.12", NOXSESSION: "rust,tests", RUST: "nightly"}
- {VERSION: "3.12", NOXSESSION: "tests-rust-debug"}
timeout-minutes: 15
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down
10 changes: 9 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def load_pyproject_toml() -> dict:
@nox.session(name="tests-ssh")
@nox.session(name="tests-randomorder")
@nox.session(name="tests-nocoverage")
@nox.session(name="tests-rust-debug")
def tests(session: nox.Session) -> None:
extras = "test"
if session.name == "tests-ssh":
Expand All @@ -66,7 +67,14 @@ def tests(session: nox.Session) -> None:
)

install(session, "-e", "./vectors")
install(session, f".[{extras}]")
if session.name == "tests-rust-debug":
install(
session,
"--config-settings=build-args=--profile=dev",
f".[{extras}]",
)
else:
install(session, f".[{extras}]")

session.run("pip", "list")

Expand Down

0 comments on commit e2633bc

Please sign in to comment.