add back cuda setup #459
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: Test | |
on: | |
push: | |
branches: | |
- main | |
- "pull-request/[0-9]+" | |
jobs: | |
test: | |
runs-on: linux-amd64-gpu-l4-latest-1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.11 | |
- name: Setup CUDA | |
uses: Jimver/cuda-toolkit@v0.2.16 | |
with: | |
cuda: '12.5.0' | |
- name: Set CUDA_HOME | |
run: echo "CUDA_HOME=/usr/local/cuda" >> $GITHUB_ENV | |
- name: Install uv | |
uses: astral-sh/setup-uv@v6 | |
with: | |
enable-cache: true | |
- name: Install dependencies | |
run: uv sync --all-groups | |
- run: make test |