ensure a mix of CUDA versions in test jobs #124
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pr | |
on: | |
push: | |
branches: | |
- "pull-request/[0-9]+" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pr-builder: | |
needs: | |
- checks | |
- conda-python-build | |
- conda-python-tests | |
- wheel-build | |
- wheel-tests | |
secrets: inherit | |
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | |
checks: | |
secrets: inherit | |
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | |
conda-python-build: | |
needs: checks | |
secrets: inherit | |
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | |
with: | |
build_type: pull-request | |
# This selects "ARCH=amd64 + the latest supported Python + CUDA". | |
matrix_filter: map(select(.ARCH == "amd64")) | max_by([(.PY_VER|split(".")|map(tonumber)), (.CUDA_VER|split(".")|map(tonumber))]) | [.] | |
script: ci/build_python.sh | |
conda-python-tests: | |
needs: conda-python-build | |
secrets: inherit | |
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | |
with: | |
build_type: pull-request | |
# This selects "one job per CUDA major version, and the latest Python version within each of those" (indifferent between amd64 and arm64) | |
matrix_filter: 'group_by([(.CUDA_VER|split(".")|map(tonumber))]) | map(sort_by(.PY_VER|split(".")|map(tonumber)) | .[-1])' | |
script: ci/test_python.sh | |
wheel-build: | |
needs: checks | |
secrets: inherit | |
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | |
with: | |
build_type: pull-request | |
# This selects the latest supported Python + CUDA | |
matrix_filter: max_by([(.PY_VER|split(".")|map(tonumber)), (.CUDA_VER|split(".")|map(tonumber))]) | [.] | |
script: "ci/build_wheel.sh" | |
package-name: jupyterlab-nvdashboard | |
package-type: python | |
pure-wheel: true | |
append-cuda-suffix: false | |
wheel-tests: | |
needs: wheel-build | |
secrets: inherit | |
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | |
with: | |
build_type: pull-request | |
# This selects "one job per CUDA major version, and the latest Python version within each of those" (indifferent between amd64 and arm64) | |
matrix_filter: 'group_by([(.CUDA_VER|split(".")|map(tonumber))]) | map(sort_by(.PY_VER|split(".")|map(tonumber)) | .[-1])' | |
script: "ci/test_wheel.sh" |