Skip to content

Commit d57f5fc

Browse files
authored
skip Cython tests when using CUDA wheels
1 parent f38e1eb commit d57f5fc

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/test-wheel.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,19 @@ jobs:
163163
pushd ./cuda_bindings
164164
pip install -r requirements.txt
165165
pytest -rxXs tests/
166-
if [[ "${{ inputs.host-platform }}" == linux* ]]; then
167-
bash tests/cython/build_tests.sh
168-
elif [[ "${{ inputs.host-platform }}" == win* ]]; then
169-
# TODO: enable this once win-64 runners are up
170-
exit 1
171-
fi
172-
pytest -rxXs tests/cython
173-
popd
166+
167+
# It is a bit convoluted to run the Cython tests against CTK wheels,
168+
# so let's just skip them.
169+
if [[ "${{ inputs.local-ctk }}" == 1 ]]; then
170+
if [[ "${{ inputs.host-platform }}" == linux* ]]; then
171+
bash tests/cython/build_tests.sh
172+
elif [[ "${{ inputs.host-platform }}" == win* ]]; then
173+
# TODO: enable this once win-64 runners are up
174+
exit 1
175+
fi
176+
pytest -rxXs tests/cython
177+
popd
178+
fi
174179
175180
- name: Run cuda.core tests
176181
run: |

0 commit comments

Comments
 (0)