From edc02d68279f3a7e6a569204518e43886639b596 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Thu, 31 Oct 2024 10:03:50 -0400 Subject: [PATCH] Set --profile=dev in tests to catch issues like #86. --- noxfile.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 11e1f98..92655fa 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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":