Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: downgrade pytest to <9 as a second pip call for numba-cuda
cuda_core's test-cuXX group hard-pins pytest==9.1.0, so pip can't
satisfy that and pytest<9 in one solve. Split the numba-cuda pytest
pin into a second `pip install "pytest<9"` after the main install.
  • Loading branch information
leofang committed Sep 30, 2026
commit 31f7af780618d874c8cfd2b6507f222a2d2a702c
11 changes: 9 additions & 2 deletions ci/tools/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,11 @@ elif [[ "${test_module}" == "core" || "${test_module}" == nightly-* ]]; then
echo "Installing pathfinder + bindings + core + test deps + numba-cuda"
# numba-cuda's test-cuXX group deps (can't use --group for a wheel install):
# numpy<2.5: numba-cuda 0.30.4 references np.row_stack, removed in numpy 2.5. See NVIDIA/numba-cuda#907.
# pytest<9: numba-cuda's subTest usage breaks under pytest 9 + xdist. See NVIDIA/numba-cuda#637.
PIP_ARGS+=(
"cuda-toolkit[curand,cublas]==${TEST_CUDA_MAJOR_MINOR}.*"
"numba-cuda[cu${TEST_CUDA_MAJOR}]"
"cupy-cuda${TEST_CUDA_MAJOR}x"
"numpy<2.5"
"pytest<9"
psutil cffi pytest-xdist pytest-benchmark filecheck ml_dtypes statistics
)
elif [[ "${test_module}" == "nightly-numba-cuda-mlir" ]]; then
Expand All @@ -186,6 +184,15 @@ elif [[ "${test_module}" == "core" || "${test_module}" == nightly-* ]]; then
fi

pip install "${PIP_ARGS[@]}"

if [[ "${test_module}" == "nightly-numba-cuda" ]]; then
# Downgrade pytest for numba-cuda: cuda_core's test-cuXX group hard-pins
# pytest==9.1.0, but numba-cuda's subTest usage breaks under pytest 9.
# Can't add pytest<9 to PIP_ARGS above because pip can't satisfy both
# ==9.1.0 and <9 in one solve. See NVIDIA/numba-cuda#637.
pip install "pytest<9"
fi

echo "Nightly install complete — installed packages:"
pip list
popd
Expand Down
Loading