Skip to content

Commit

Permalink
Set --profile=dev in tests to catch issues like #86.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Oct 31, 2024
1 parent d8a094c commit edc02d6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,18 @@ def tests(session):
"""
Run the test suite with a corresponding Python version.
"""
session.install("-r", REQUIREMENTS["tests"])
# Really we want --profile=test here (for
# https://github.com/crate-py/rpds/pull/87#issuecomment-2291409297)
# but it produces strange symbol errors saying:
# dynamic module does not define module export function (PyInit_rpds)
# so OK, dev it is.
session.install(
"--config-settings",
"build-args=--profile=dev",
"--no-cache",
"-r",
REQUIREMENTS["tests"],
)

if session.posargs and session.posargs[0] == "coverage":
if len(session.posargs) > 1 and session.posargs[1] == "github":
Expand Down

0 comments on commit edc02d6

Please sign in to comment.