-
Notifications
You must be signed in to change notification settings - Fork 442
81 lines (69 loc) · 2.4 KB
/
slow_tests.yaml
File metadata and controls
81 lines (69 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Slow end to end tests
on:
push:
branches:
- main
- v*-release
pull_request:
branches:
- main
jobs:
run_tests:
name: Run tests
runs-on: 'aws-g4dn-2xlarge-use1-public-80'
steps:
- name: Install Git LFS
run: |
if ! command -v git-lfs &> /dev/null; then
echo "Installing Git LFS..."
sudo apt-get update && sudo apt-get install -y git-lfs
git lfs install
else
echo "Git LFS already installed."
fi
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install the project
run: uv sync --extra dev-gpu
- name: Install Python development headers
run: sudo apt-get update && sudo apt-get install -y python3.12-dev
- name: Cache CUDA Toolkit
id: cache-cuda
uses: actions/cache@v4
with:
path: /usr/local/cuda-12.8
key: cuda-toolkit-12-8-${{ runner.os }}
- name: Install CUDA Toolkit
if: steps.cache-cuda.outputs.cache-hit != 'true'
run: |
# Add NVIDIA package repositories
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
# Install CUDA toolkit 12.8 to match nvidia-cuda-runtime-cu12==12.8.90
sudo apt-get install -y cuda-toolkit-12-8
- name: Verify CUDA installation
run: |
ls -la /usr/local/cuda-12.8/bin/nvcc || echo "WARNING: nvcc not found at /usr/local/cuda-12.8/bin/nvcc"
if [ -f /usr/local/cuda-12.8/bin/nvcc ]; then
/usr/local/cuda-12.8/bin/nvcc --version
fi
- name: Setup CUDA environment
run: |
export CUDA_HOME=/usr/local/cuda-12.8
export PATH="/usr/local/cuda-12.8/bin:$PATH"
echo "CUDA_HOME=/usr/local/cuda-12.8" >> $GITHUB_ENV
echo "/usr/local/cuda-12.8/bin" >> $GITHUB_PATH
- name: run nvidia-smi
run: nvidia-smi
- name: Run tests
run: |
export CUDA_HOME=/usr/local/cuda-12.8
export PATH="/usr/local/cuda-12.8/bin:$PATH"
uv run pytest --disable-pytest-warnings --runslow -v -s tests/slow_tests/