Skip to content

Commit 67f8e2d

Browse files
committed
add test jobs against CUDA wheels
1 parent 5015410 commit 67f8e2d

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/build-and-test.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ jobs:
200200
- "11.8.0"
201201
runner:
202202
- default
203+
local_ctk:
204+
- 1 # use mini CTK
205+
- 0 # use CTK wheels
203206
include:
204207
- host-platform: linux-64
205208
python-version: "3.12"
@@ -214,7 +217,7 @@ jobs:
214217
- build
215218
secrets: inherit
216219
uses:
217-
./.github/workflows/test_local_ctk.yml
220+
./.github/workflows/test_wheel.yml
218221
with:
219222
host-platform: ${{ matrix.host-platform }}
220223
python-version: ${{ matrix.python-version }}

.github/workflows/test_local_ctk.yml renamed to .github/workflows/test_wheel.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CI: Test against local CTK"
1+
name: "CI: Test wheels"
22

33
on:
44
workflow_call:
@@ -15,6 +15,9 @@ on:
1515
cuda-version:
1616
type: string
1717
required: true
18+
local_ctk:
19+
type: string
20+
required: true
1821
runner:
1922
type: string
2023
required: true
@@ -138,6 +141,7 @@ jobs:
138141
AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache"
139142

140143
- name: Set up mini CTK
144+
if: ${{ inputs.local_ctk == '1' }}
141145
uses: ./.github/actions/fetch_ctk
142146
continue-on-error: false
143147
with:
@@ -150,7 +154,11 @@ jobs:
150154
ls $CUDA_PATH
151155
152156
pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}"
153-
pip install *.whl
157+
if [[ "${{ inputs.local_ctk }}" == 1 ]]; then
158+
pip install *.whl
159+
else
160+
pip install $(ls *.whl)[all]
161+
fi
154162
popd
155163
156164
pushd ./cuda_bindings
@@ -171,7 +179,11 @@ jobs:
171179
# If mismatch: cuda.bindings is installed from the backport branch.
172180
if [[ "${SKIP_CUDA_BINDINGS_TEST}" == 1 ]]; then
173181
pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}"
174-
pip install *.whl
182+
if [[ "${{ inputs.local_ctk }}" == 1 ]]; then
183+
pip install *.whl
184+
else
185+
pip install $(ls *.whl)[all]
186+
fi
175187
popd
176188
fi
177189
TEST_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${{ inputs.cuda-version }})"

0 commit comments

Comments
 (0)