Skip to content
Open
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
21 changes: 19 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,27 @@ on:

env:
PY_VER: "3.14"
CUDA_VER: "13.1.0"
LOCAL_CTK: "1"
GPU: "a100"
DRIVER: "latest"

jobs:
coverage-vars:
runs-on: ubuntu-latest
outputs:
CUDA_VER: ${{ steps.get-vars.outputs.cuda_ver }}
steps:
- name: Checkout ${{ github.event.repository.name }}
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Get CUDA version
id: get-vars
run: |
cuda_ver=$(yq '.cuda.build.version' ci/versions.yml)
echo "cuda_ver=$cuda_ver" >> $GITHUB_OUTPUT

coverage-linux:
name: Coverage (Linux)
needs: [coverage-vars]
runs-on: "linux-amd64-gpu-a100-latest-1"
permissions:
id-token: write
Expand All @@ -29,6 +42,7 @@ jobs:
env:
HOST_PLATFORM: "linux-64"
ARCH: "x86_64"
CUDA_VER: ${{ needs.coverage-vars.outputs.CUDA_VER }}
# Our self-hosted runners require a container
# TODO: use a different (nvidia?) container
container:
Expand Down Expand Up @@ -164,6 +178,7 @@ jobs:
# Build Windows wheels on GitHub-hosted runner (has VS, no GPU)
build-wheel-windows:
name: Build Wheels (Windows)
needs: [coverage-vars]
runs-on: windows-2022
permissions:
contents: read
Expand All @@ -173,6 +188,7 @@ jobs:
env:
HOST_PLATFORM: "win-64"
CUDA_PYTHON_COVERAGE: "1"
CUDA_VER: ${{ needs.coverage-vars.outputs.CUDA_VER }}
steps:
- name: Checkout ${{ github.event.repository.name }}
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -231,7 +247,7 @@ jobs:
# Run coverage tests on self-hosted GPU runner (no VS needed, installs pre-built wheels)
coverage-windows:
name: Coverage (Windows)
needs: [build-wheel-windows]
needs: [coverage-vars, build-wheel-windows]
runs-on: "windows-amd64-gpu-a100-latest-1"
permissions:
id-token: write
Expand All @@ -240,6 +256,7 @@ jobs:
HOST_PLATFORM: "win-64"
ARCH: "amd64"
CUDA_PYTHON_COVERAGE: "1"
CUDA_VER: ${{ needs.coverage-vars.outputs.CUDA_VER }}
defaults:
run:
shell: bash --noprofile --norc -xeuo pipefail {0}
Expand Down