Skip to content

Commit

Permalink
feat: add runner (#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyncs authored Jul 30, 2024
1 parent daf593a commit 17af39c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pr-e2e-test.yml
Original file line number Diff line number Diff line change
@@ -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..."

0 comments on commit 17af39c

Please sign in to comment.