peregrine/.forgejo/workflows/ci.yml
pyr0ball 9f9453a3b0
Some checks failed
CI / Backend (Python) (push) Failing after 29s
CI / Frontend (Vue) (push) Successful in 1m2s
Mirror / mirror (push) Failing after 9s
ci: wire Forgejo Actions workflows and add .cliff.toml
Adds the three standard CircuitForge workflows from cf-agents:
- ci.yml: split backend (Python/ruff/pytest) + frontend (Node/vue-tsc/vitest) jobs
- mirror.yml: push-to-GitHub + Codeberg on main/tags
- release.yml: changelog generation + Forgejo release on v* tags
  (Docker push disabled pending BSL registry policy — cf-agents#3)

Also adds .cliff.toml with conventional-commits changelog config.

Full-stack ci.yml variant tracked in cf-agents#4; update when available.
Required secrets: GITHUB_MIRROR_TOKEN, CODEBERG_MIRROR_TOKEN, FORGEJO_RELEASE_TOKEN

Closes #69
2026-04-05 23:57:43 -07:00

57 lines
1.2 KiB
YAML

# Peregrine CI — lint, type-check, test on PR/push
# Full-stack: FastAPI (Python) + Vue 3 SPA (Node)
# Adapted from Circuit-Forge/cf-agents workflows/ci.yml (cf-agents#4 tracks the
# upstream ci-fullstack.yml variant; update this file when that lands).
name: CI
on:
push:
branches: [main, 'feature/**', 'fix/**']
pull_request:
branches: [main]
jobs:
backend:
name: Backend (Python)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Lint
run: ruff check .
- name: Test
run: pytest tests/ -v --tb=short
frontend:
name: Frontend (Vue)
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
cache-dependency-path: web/package-lock.json
- name: Install dependencies
run: npm ci
- name: Type check
run: npx vue-tsc --noEmit
- name: Test
run: npm run test