feat: add runner (#821)

This commit is contained in:
Yineng Zhang
2024-07-30 17:32:13 +10:00
committed by GitHub
parent daf593a385
commit 17af39c5dc

30
.github/workflows/pr-e2e-test.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: PR E2E Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
gpu-job:
runs-on: self-hosted
env:
CUDA_VISIBLE_DEVICES: 6
steps:
- uses: actions/checkout@v2
- name: Check GPU
run: |
if ! command -v nvidia-smi &> /dev/null; then
echo "nvidia-smi not found. Is CUDA installed?"
exit 1
fi
nvidia-smi || exit 1
- name: Environment Info
run: |
echo "Working directory: $(pwd)"
echo "CUDA_VISIBLE_DEVICES: $CUDA_VISIBLE_DEVICES"
- name: Run Tests
run: |
echo "Running tests..."