Skip to content

Commit 4a58adb

Browse files
authored
CI: run cuda.core examples on Linux and Windows (#1722)
* ci: run cuda.core examples on Linux * ci: run cuda.core examples on Windows Add pytest step to run cuda.core example tests following the same pattern as cuda.bindings examples from PR #1517. The step runs `pytest -ra -s -vv tests/example_tests/` from within the cuda_core directory, matching the pattern used in QA testing. Trigger for this change: #1718 (comment) Made-with: Cursor
1 parent 7848bc3 commit 4a58adb

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,15 @@ jobs:
277277
LOCAL_CTK: ${{ matrix.LOCAL_CTK }}
278278
run: run-tests core
279279

280+
- name: Run cuda.core examples
281+
env:
282+
CUDA_VER: ${{ matrix.CUDA_VER }}
283+
LOCAL_CTK: ${{ matrix.LOCAL_CTK }}
284+
run: |
285+
pushd cuda_core
286+
${SANITIZER_CMD} pytest -ra -s -vv tests/example_tests/
287+
popd
288+
280289
- name: Ensure cuda-python installable
281290
run: |
282291
if [[ "${{ matrix.LOCAL_CTK }}" == 1 ]]; then

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,16 @@ jobs:
254254
shell: bash --noprofile --norc -xeuo pipefail {0}
255255
run: run-tests core
256256

257+
- name: Run cuda.core examples
258+
env:
259+
CUDA_VER: ${{ matrix.CUDA_VER }}
260+
LOCAL_CTK: ${{ matrix.LOCAL_CTK }}
261+
shell: bash --noprofile --norc -xeuo pipefail {0}
262+
run: |
263+
pushd cuda_core
264+
${SANITIZER_CMD} pytest -ra -s -vv tests/example_tests/
265+
popd
266+
257267
- name: Ensure cuda-python installable
258268
run: |
259269
if ('${{ matrix.LOCAL_CTK }}' -eq '1') {

0 commit comments

Comments
 (0)