From 3fc637ee60633ad6e4c696093ff5a9171162e5d1 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Fri, 24 Jul 2026 15:47:05 -0500 Subject: [PATCH 1/2] test: isolate library wheel smoke test --- ci/test_wheel_cuopt.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ci/test_wheel_cuopt.sh b/ci/test_wheel_cuopt.sh index 12c8d2396b..0618d58536 100755 --- a/ci/test_wheel_cuopt.sh +++ b/ci/test_wheel_cuopt.sh @@ -31,6 +31,17 @@ EOF # generate constraints (possibly pinning to oldest support versions of dependencies) rapids-generate-pip-constraints test_python "${PIP_CONSTRAINT}" +python -m venv libcuopt-env +. libcuopt-env/bin/activate + +rapids-pip-retry install \ + -v \ + --prefer-binary \ + --constraint "${PIP_CONSTRAINT}" \ + "${LIBCUOPT_WHEELHOUSE}"/libcuopt*.whl +python -c "import libcuopt; libcuopt.load_library()" +deactivate + # notes: # # * echo to expand wildcard before adding `[test]` requires for pip From fcb4c493c3efda834ac4492761677cf8647e44fc Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Fri, 24 Jul 2026 16:46:51 -0500 Subject: [PATCH 2/2] test: assert native library loads --- ci/test_wheel_cuopt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/test_wheel_cuopt.sh b/ci/test_wheel_cuopt.sh index 0618d58536..b0c2860127 100755 --- a/ci/test_wheel_cuopt.sh +++ b/ci/test_wheel_cuopt.sh @@ -39,7 +39,7 @@ rapids-pip-retry install \ --prefer-binary \ --constraint "${PIP_CONSTRAINT}" \ "${LIBCUOPT_WHEELHOUSE}"/libcuopt*.whl -python -c "import libcuopt; libcuopt.load_library()" +python -c "import libcuopt; assert libcuopt.load_library() is not None" deactivate # notes: