Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions .github/workflows/build-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ jobs:
path: ${{ env.CURRENT_BINDINGS_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }}
if-no-files-found: error

- name: Build cuda.core ${{ env.CURRENT_CUDA_VARIANT }} Cython tests
- name: Prepare cuda.core ${{ env.CURRENT_CUDA_VARIANT }} Cython tests
if: ${{ env.TEST_CORE_CURRENT == 'true' }}
run: |
pip install ${{ env.CURRENT_BINDINGS_ARTIFACTS_DIR }}/*.whl
Expand All @@ -526,9 +526,17 @@ jobs:
exit 1
fi
pip install "${core_wheel}" --group ./cuda_core/pyproject.toml:test
pushd ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}
bash build_tests.sh
popd

- name: Build cuda.core ${{ env.CURRENT_CUDA_VARIANT }} Cython tests (Linux)
if: ${{ env.TEST_CORE_CURRENT == 'true' && runner.os == 'Linux' }}
working-directory: cuda_core/tests/cython
run: bash build_tests.sh

- name: Build cuda.core ${{ env.CURRENT_CUDA_VARIANT }} Cython tests (Windows)
if: ${{ env.TEST_CORE_CURRENT == 'true' && runner.os == 'Windows' }}
working-directory: cuda_core/tests/cython
shell: cmd
run: call .\build_tests.bat

- name: Upload current cuda.core Cython tests
if: ${{ env.TEST_CORE_CURRENT == 'true' }}
Expand Down Expand Up @@ -733,7 +741,7 @@ jobs:

ls -lahR ${{ env.CUDA_CORE_ARTIFACTS_DIR }}

- name: Build cuda.core ${{ env.MAINTENANCE_CUDA_VARIANT }} Cython tests
- name: Prepare cuda.core ${{ env.MAINTENANCE_CUDA_VARIANT }} Cython tests
if: ${{ !inputs.single-cuda-major && env.TEST_CORE_MAINTENANCE == 'true' }}
run: |
# The current package's test extensions were built in this same source tree.
Expand All @@ -755,9 +763,17 @@ jobs:
exit 1
fi
pip install "${core_wheel}" --group ./cuda_core/pyproject.toml:test
pushd ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }}
bash build_tests.sh
popd

- name: Build cuda.core ${{ env.MAINTENANCE_CUDA_VARIANT }} Cython tests (Linux)
if: ${{ !inputs.single-cuda-major && env.TEST_CORE_MAINTENANCE == 'true' && runner.os == 'Linux' }}
working-directory: cuda_core/tests/cython
run: bash build_tests.sh

- name: Build cuda.core ${{ env.MAINTENANCE_CUDA_VARIANT }} Cython tests (Windows)
if: ${{ !inputs.single-cuda-major && env.TEST_CORE_MAINTENANCE == 'true' && runner.os == 'Windows' }}
working-directory: cuda_core/tests/cython
shell: cmd
run: call .\build_tests.bat

- name: Upload maintenance cuda.core Cython tests
if: ${{ !inputs.single-cuda-major && env.TEST_CORE_MAINTENANCE == 'true' }}
Expand Down
10 changes: 10 additions & 0 deletions cuda_core/tests/cython/build_tests.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@echo off

REM SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
REM SPDX-License-Identifier: Apache-2.0

setlocal
set "INCLUDE=%~dp0..\..\cuda\core\_include;%CUDA_HOME%\include;%INCLUDE%"
python "%~dp0build_tests.py"
set "BUILD_RESULT=%ERRORLEVEL%"
endlocal & exit /b %BUILD_RESULT%
Loading