Skip to content

Commit 1dbab9c

Browse files
authored
test: isolate library wheel smoke test (#1624)
Install the library wheel in a clean virtual environment and call its `load_library()` entry point before installing the high-level wheel or test extras. This exposes missing library-wheel runtime dependencies that the full test environment can otherwise mask. xref: rapidsai/build-planning#307 Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Ramakrishna Prabhu (https://github.com/ramakrishnap-nv) - James Lamb (https://github.com/jameslamb) URL: #1624
1 parent e8c1ae0 commit 1dbab9c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

ci/test_wheel_cuopt.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ EOF
3131
# generate constraints (possibly pinning to oldest support versions of dependencies)
3232
rapids-generate-pip-constraints test_python "${PIP_CONSTRAINT}"
3333

34+
python -m venv libcuopt-env
35+
. libcuopt-env/bin/activate
36+
37+
rapids-pip-retry install \
38+
-v \
39+
--prefer-binary \
40+
--constraint "${PIP_CONSTRAINT}" \
41+
"${LIBCUOPT_WHEELHOUSE}"/libcuopt*.whl
42+
python -c "import libcuopt; assert libcuopt.load_library() is not None"
43+
deactivate
44+
3445
# notes:
3546
#
3647
# * echo to expand wildcard before adding `[test]` requires for pip

0 commit comments

Comments
 (0)