Spaces:
Running on Zero
Running on Zero
ci: add github actions for ruff + pytest l1+l2
Browse files- .github/workflows/ci.yml +23 -0
.github/workflows/ci.yml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: CI
|
| 2 |
+
on:
|
| 3 |
+
push:
|
| 4 |
+
branches: [main]
|
| 5 |
+
pull_request:
|
| 6 |
+
jobs:
|
| 7 |
+
test:
|
| 8 |
+
runs-on: ubuntu-latest
|
| 9 |
+
steps:
|
| 10 |
+
- uses: actions/checkout@v4
|
| 11 |
+
- uses: actions/setup-python@v5
|
| 12 |
+
with:
|
| 13 |
+
python-version: "3.11"
|
| 14 |
+
- name: Install deps (CPU-only, skip ace-step + mlx)
|
| 15 |
+
run: |
|
| 16 |
+
python -m pip install --upgrade pip
|
| 17 |
+
pip install ruff pytest gradio safetensors peft pyloudnorm numpy
|
| 18 |
+
- name: Lint
|
| 19 |
+
run: |
|
| 20 |
+
ruff format --check .
|
| 21 |
+
ruff check .
|
| 22 |
+
- name: Tests (L1+L2, no GPU)
|
| 23 |
+
run: pytest -m "not gpu" --tb=short
|