Skip to content

Commit c23833b

Browse files
authored
Fix tag CI by installing cuda-python metapackage with --no-deps (#2334)
During cuda-core tag releases, pip install cuda_python*.whl re-resolves cuda-core~=1.0.0 from PyPI and fails or downgrades the artifact wheel. Subpackages are already installed from CI artifacts, so skip dependency resolution in docs build and wheel test installability checks.
1 parent 52043f9 commit c23833b

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/build-docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ jobs:
212212
pip install *.whl
213213
popd
214214
215-
pip install cuda_python*.whl
215+
# Subpackages are already installed from CI artifacts above.
216+
# --no-deps avoids re-resolving cuda-core from PyPI during tag releases.
217+
pip install --no-deps cuda_python*.whl
216218
217219
# This step sets the PR_NUMBER/BUILD_LATEST/BUILD_PREVIEW env vars.
218220
- name: Get PR number

.github/workflows/test-wheel-linux.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,12 @@ jobs:
372372
- name: Ensure cuda-python installable
373373
if: ${{ inputs.test-mode == 'standard' && env.BINDINGS_SOURCE == 'main' }}
374374
run: |
375+
# Subpackages are already installed from CI artifacts; --no-deps keeps
376+
# tag-release cuda-core wheels from being replaced by PyPI pins.
375377
if [[ "${{ matrix.LOCAL_CTK }}" == 1 ]]; then
376-
pip install --only-binary=:all: cuda_python*.whl
378+
pip install --only-binary=:all: --no-deps cuda_python*.whl
377379
else
378-
pip install --only-binary=:all: $(ls cuda_python*.whl)[all]
380+
pip install --only-binary=:all: --no-deps $(ls cuda_python*.whl)[all]
379381
fi
380382
381383
- name: Install cuda.pathfinder extra wheels for testing

.github/workflows/test-wheel-windows.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,12 @@ jobs:
341341
- name: Ensure cuda-python installable
342342
if: ${{ inputs.test-mode == 'standard' && env.BINDINGS_SOURCE == 'main' }}
343343
run: |
344+
# Subpackages are already installed from CI artifacts; --no-deps keeps
345+
# tag-release cuda-core wheels from being replaced by PyPI pins.
344346
if ('${{ matrix.LOCAL_CTK }}' -eq '1') {
345-
pip install --only-binary=:all: (Get-ChildItem -Filter cuda_python*.whl).FullName
347+
pip install --only-binary=:all: --no-deps (Get-ChildItem -Filter cuda_python*.whl).FullName
346348
} else {
347-
pip install --only-binary=:all: "$((Get-ChildItem -Filter cuda_python*.whl).FullName)[all]"
349+
pip install --only-binary=:all: --no-deps "$((Get-ChildItem -Filter cuda_python*.whl).FullName)[all]"
348350
}
349351
350352
- name: Install cuda.pathfinder extra wheels for testing

0 commit comments

Comments
 (0)