vep/.forgejo/workflows/ci.yml
2026-08-07 19:26:49 +00:00

39 lines
1.1 KiB
YAML

# Forgejo Actions: P1 CI gate. Runs boundary tests + spine-check.
# Blocks merge if either fails (red). Safe: no infrastructure changes, just verification.
name: vep-p1-ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
verify:
runs-on: docker
container:
image: python:3.12-slim
services:
postgres:
image: pgvector/pgvector:0.7.0-pg16
env:
POSTGRES_USER: vep
POSTGRES_PASSWORD: vep_test
POSTGRES_DB: vep
ports:
- "5432:5432"
steps:
- uses: actions/checkout@v4
- name: Install uv
run: pip install uv && uv python install 3.12
- name: Install deps
run: uv pip install --system -r requirements.txt pytest httpx
- name: Init schema
env:
DATABASE_URL: postgresql://vep:vep_test@postgres:5432/vep
run: uv run python -m vep.initdb
- name: Boundary tests
env:
DATABASE_URL: postgresql://vep:vep_test@postgres:5432/vep
run: uv run pytest -q
- name: Spine-check
run: uv run python scripts/spine_check.py