@@ -24,7 +24,7 @@ test_module=${1}
2424# (it is a direct dependency of bindings, and a transitive dependency of core)
2525pushd ./cuda_pathfinder
2626echo " Installing pathfinder wheel"
27- pip install $( ls * .whl) [ test]
27+ pip install ./ * .whl --group test
2828popd
2929
3030if [[ " ${test_module} " == " pathfinder" ]]; then
@@ -38,15 +38,13 @@ if [[ "${test_module}" == "pathfinder" ]]; then
3838 echo " Number of \" INFO test_\" lines: $line_count "
3939 popd
4040elif [[ " ${test_module} " == " bindings" ]]; then
41- pushd " ${CUDA_BINDINGS_ARTIFACTS_DIR} "
4241 echo " Installing bindings wheel"
42+ pushd ./cuda_bindings
4343 if [[ " ${LOCAL_CTK} " == 1 ]]; then
44- pip install $( ls * .whl) [ test]
44+ pip install " ${CUDA_BINDINGS_ARTIFACTS_DIR} " / * .whl --group test
4545 else
46- pip install $( ls * .whl) [all,test]
46+ pip install $( ls " ${CUDA_BINDINGS_ARTIFACTS_DIR} " / * .whl) [all] --group test
4747 fi
48- popd
49- pushd ./cuda_bindings
5048 echo " Running bindings tests"
5149 ${SANITIZER_CMD} pytest -rxXs -v tests/
5250 if [[ " ${SKIP_CYTHON_TEST} " == 0 ]]; then
@@ -57,33 +55,29 @@ elif [[ "${test_module}" == "core" ]]; then
5755 # If build/test majors match: cuda.bindings is installed in the previous step.
5856 # If mismatch: cuda.bindings is installed from the backport branch.
5957 if [[ " ${SKIP_CUDA_BINDINGS_TEST} " == 1 ]]; then
60- pushd " ${CUDA_BINDINGS_ARTIFACTS_DIR} "
6158 echo " Installing bindings wheel"
6259 if [[ " ${LOCAL_CTK} " == 1 ]]; then
63- pip install * .whl
60+ pip install " ${CUDA_BINDINGS_ARTIFACTS_DIR} " / * .whl
6461 else
65- pip install $( ls * .whl) [all]
62+ pip install $( ls " ${CUDA_BINDINGS_ARTIFACTS_DIR} " / * .whl) [all]
6663 fi
67- popd
6864 fi
6965 TEST_CUDA_MAJOR=" $( cut -d ' .' -f 1 <<< ${CUDA_VER} ) "
70- pushd " ${CUDA_CORE_ARTIFACTS_DIR} "
7166 echo " Installing core wheel"
7267
7368 FREE_THREADING=" "
7469 if python -c ' import sys; assert not sys._is_gil_enabled()' 2> /dev/null; then
7570 FREE_THREADING+=" -ft"
7671 fi
7772
73+ pushd ./cuda_core
7874 if [[ " ${LOCAL_CTK} " == 1 ]]; then
7975 # We already installed cuda-bindings, and all CTK components exist locally,
8076 # so just install the test dependencies.
81- pip install $( ls * .whl) [ " test-cu${TEST_CUDA_MAJOR}${FREE_THREADING} " ]
77+ pip install " ${CUDA_CORE_ARTIFACTS_DIR} " / * .whl --group " test-cu${TEST_CUDA_MAJOR}${FREE_THREADING} "
8278 else
83- pip install $( ls * .whl) [" cu${TEST_CUDA_MAJOR} " , " test-cu${TEST_CUDA_MAJOR}${FREE_THREADING} " ]
79+ pip install $( ls " ${CUDA_CORE_ARTIFACTS_DIR} " / * .whl) [" cu${TEST_CUDA_MAJOR} " ] --group " test-cu${TEST_CUDA_MAJOR}${FREE_THREADING} "
8480 fi
85- popd
86- pushd ./cuda_core
8781 echo " Running core tests"
8882 ${SANITIZER_CMD} pytest -rxXs -v tests/
8983 # Currently our CI always installs the latest bindings (from either major version).
0 commit comments