From 7077eb872d68beb8c8ec74e53d85580ae6165e7f Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 4 Mar 2026 12:20:23 -0800 Subject: [PATCH] CI: run cuda.core examples on Linux and Windows * 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: https://github.com/NVIDIA/cuda-python/pull/1718#issuecomment-3999131610 Made-with: Cursor --- .github/workflows/test-wheel-linux.yml | 9 +++++++++ .github/workflows/test-wheel-windows.yml | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/.github/workflows/test-wheel-linux.yml b/.github/workflows/test-wheel-linux.yml index 3c80128bb1..b9acbb68e1 100644 --- a/.github/workflows/test-wheel-linux.yml +++ b/.github/workflows/test-wheel-linux.yml @@ -277,6 +277,15 @@ jobs: LOCAL_CTK: ${{ matrix.LOCAL_CTK }} run: run-tests core + - name: Run cuda.core examples + env: + CUDA_VER: ${{ matrix.CUDA_VER }} + LOCAL_CTK: ${{ matrix.LOCAL_CTK }} + run: | + pushd cuda_core + ${SANITIZER_CMD} pytest -ra -s -vv tests/example_tests/ + popd + - name: Ensure cuda-python installable run: | if [[ "${{ matrix.LOCAL_CTK }}" == 1 ]]; then diff --git a/.github/workflows/test-wheel-windows.yml b/.github/workflows/test-wheel-windows.yml index dc9a31719f..8b1a02ca29 100644 --- a/.github/workflows/test-wheel-windows.yml +++ b/.github/workflows/test-wheel-windows.yml @@ -254,6 +254,16 @@ jobs: shell: bash --noprofile --norc -xeuo pipefail {0} run: run-tests core + - name: Run cuda.core examples + env: + CUDA_VER: ${{ matrix.CUDA_VER }} + LOCAL_CTK: ${{ matrix.LOCAL_CTK }} + shell: bash --noprofile --norc -xeuo pipefail {0} + run: | + pushd cuda_core + ${SANITIZER_CMD} pytest -ra -s -vv tests/example_tests/ + popd + - name: Ensure cuda-python installable run: | if ('${{ matrix.LOCAL_CTK }}' -eq '1') {