Skip to content

Commit 04052f4

Browse files
apiadclaude
andcommitted
ci: add GitHub Actions workflow running ruff + pytest on push/PR
Runs on every push to main and on every PR. Pipeline: 1. uv setup with cache 2. Python 3.12 (matches pyproject's requires-python) 3. uv sync --extra server (installs FastAPI/pydantic/etc) 4. ruff format --check . (gate) 5. pytest --cov=violetear Mirrors `make test-unit` so local + CI behavior are identical. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1ba37ae commit 04052f4

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v3
16+
with:
17+
enable-cache: true
18+
19+
- name: Set up Python
20+
run: uv python install 3.12
21+
22+
- name: Install dependencies
23+
run: uv sync --extra server
24+
25+
- name: Check formatting
26+
run: uv run ruff format --check .
27+
28+
- name: Run tests
29+
run: uv run pytest --cov=violetear

0 commit comments

Comments
 (0)