Skip to content

first functional

first functional #1

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
backend-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install backend deps
run: |
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
- name: Apply alembic migrations (SQLite CI DB)
env:
DATABASE_URL: sqlite:///./ci_test.db
run: |
cd backend
alembic -c alembic.ini upgrade head
- name: Run backend tests
run: |
cd backend
pytest -q
frontend-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install frontend deps
run: |
cd frontend
npm ci
- name: Typecheck frontend
run: |
cd frontend
npx tsc -p tsconfig.json --noEmit