Skip to content
Merged
Show file tree
Hide file tree
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: move pytest<9 pin for numba-cuda into ci/tools/run-tests
Keeps pip constraints in the install step alongside numpy<2.5,
instead of a separate `pip install` in the workflow.
  • Loading branch information
leofang committed Sep 30, 2026
commit f0682bf602a1a2d4b0fea929bfdfd9fdbf8416b1
3 changes: 0 additions & 3 deletions .github/workflows/test-wheel-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,6 @@ jobs:
- name: Run numba-cuda tests
if: ${{ inputs.test-mode == 'nightly-numba-cuda' }}
run: |
# pytest<9: numba-cuda's subTest-based tests break under pytest 9's
# xdist subtest handling. See NVIDIA/numba-cuda#637.
pip install "pytest<9"
# test_ipc: numba-cuda v0.30.4 accesses CUipcMemHandle.reserved, which
# cuda-bindings intentionally removed. numba-cuda is EOL upstream, so
# no fix is coming. See cuda-python#2748.
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test-wheel-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,7 @@ jobs:
if: ${{ inputs.test-mode == 'nightly-numba-cuda' }}
shell: bash --noprofile --norc -xeuo pipefail {0}
run: |
# See linux step for rationale (pytest<9 and test_ipc skip).
pip install "pytest<9"
# See linux step for rationale on the test_ipc skip.
pytest -v --pyargs numba.cuda.tests --ignore-glob="**/test_ipc.py"

- name: Checkout numba-cuda-mlir tests at matching tag
Expand Down
2 changes: 2 additions & 0 deletions ci/tools/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ 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 Down
Loading