Skip to content

Commit

Permalink
add ci gpu worlflow
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Nov 22, 2024
1 parent 96be31d commit 1d5dc56
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/gpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests on GPU

on:
push:
branches:
- main
pull_request:
# This will trigger the workflow for pull requests to any branch
types: [opened, synchronize, reopened]

jobs:
gpu-tests:
name: python
runs-on: self-hosted

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"



- name: Set up Python
run: uv python install 3.10.13

- name: Install the project
run: uv sync --all-extras --dev

- name: Install flash attention
run: uv pip install flash-attn --no-build-isolation

- name: Run tests
run: uv run pytest tests

0 comments on commit 1d5dc56

Please sign in to comment.