Skip to content

Phase 4: Web Interface (#14) #40

Phase 4: Web Interface (#14)

Phase 4: Web Interface (#14) #40

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
api:
runs-on: ubuntu-latest
services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_USER: copilot
POSTGRES_PASSWORD: copilot
POSTGRES_DB: vault_copilot
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U copilot -d vault_copilot"
--health-interval 5s
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: postgresql+psycopg://copilot:copilot@localhost:5432/vault_copilot
defaults:
run:
working-directory: apps/api
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Check formatting
run: ruff format --check .
- name: Lint
run: ruff check .
- name: Run tests
run: pytest -v
web:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: apps/web/package-lock.json
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npm run format
- name: Lint
run: npm run lint
- name: Typecheck
run: npm run typecheck
- name: Run tests
run: npm test