-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.36 KB
/
Copy pathci.yml
File metadata and controls
50 lines (41 loc) · 1.36 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# Cancel in-progress runs of the same workflow on a new push to the same ref.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-and-test:
name: Lint & test (Python ${{ matrix.python-version }})
# Saymo targets macOS arm64 (Apple Silicon) — most realistic to test there.
# Heavy ML deps (Coqui TTS, mlx-audio) wouldn't pull in on Linux anyway.
runs-on: macos-14
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
env:
PY_VERSION: ${{ matrix.python-version }}
run: uv python install "$PY_VERSION"
- name: Install minimal dev deps
# Skip the heavy install.sh (XTTS, Whisper, Ollama) — CI just lints/tests.
# Heavy integration tests should be marked and skipped here.
run: uv sync --frozen || uv sync
- name: Lint with ruff
run: |
uv run ruff check --output-format=github . || true
uv run ruff format --diff . || true
- name: Run unit tests
run: uv run pytest tests/ -v --tb=short