Skip to content

docs: live demo links + CORS platform note #8

docs: live demo links + CORS platform note

docs: live demo links + CORS platform note #8

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
backend:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: corpora
POSTGRES_PASSWORD: corpora
POSTGRES_DB: corpora
ports: ["5432:5432"]
options: >-
--health-cmd "pg_isready -U corpora"
--health-interval 5s
--health-timeout 3s
--health-retries 10
redis:
image: redis:7-alpine
ports: ["6379:6379"]
qdrant:
image: qdrant/qdrant:latest
ports: ["6333:6333"]
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
- name: Install
run: uv sync
- name: Lint
run: uv run ruff check app tests
- name: Migrate
run: uv run alembic upgrade head
- name: Test (unit + integration)
run: uv run pytest -q -m "not slow and not eval"
eval-gate:
runs-on: ubuntu-latest
needs: backend
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: corpora
POSTGRES_PASSWORD: corpora
POSTGRES_DB: corpora
ports: ["5432:5432"]
options: >-
--health-cmd "pg_isready -U corpora"
--health-interval 5s
--health-timeout 3s
--health-retries 10
redis:
image: redis:7-alpine
ports: ["6379:6379"]
qdrant:
image: qdrant/qdrant:latest
ports: ["6333:6333"]
defaults:
run:
working-directory: backend
env:
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
- run: uv sync
- run: uv run alembic upgrade head
- name: RAG quality gate (faithfulness / relevancy / retrieval hit-rate)
run: uv run pytest -q -m eval -s
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: frontend/package-lock.json
- run: npm ci
- run: npm run lint
- run: npm run build