- make small trains from a CSV and prints metrics + confusion matrix - make figures renders dependency-free SVGs from metrics.json - scripts/e2e_train.py boots a real server and checks snapshot, robustness, auth, one-job-at-a-time, and both training jobs with hot-swap - CI/ruff/compileall now include scripts/
42 lines
874 B
YAML
42 lines
874 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "feat/**"
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install uv
|
|
run: python -m pip install "uv==0.10.4"
|
|
|
|
# Same checks as local `make check`, split into steps for readable CI
|
|
# failures. No secrets, no image push, no cluster access.
|
|
- name: Sync locked environment
|
|
run: uv sync --frozen
|
|
|
|
- name: Static analysis (ruff)
|
|
run: uv run ruff check src tests scripts main.py
|
|
|
|
- name: Byte-compile
|
|
run: uv run python -m compileall src scripts
|
|
|
|
- name: Tests
|
|
run: uv run pytest -q
|