Skip to content

Weight trend: fit the readings, and report what backs them #23

Weight trend: fit the readings, and report what backs them

Weight trend: fit the readings, and report what backs them #23

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
backend:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 5s
--health-timeout 5s
--health-retries 10
defaults:
run:
working-directory: backend
env:
# The suite creates its own throwaway training_api_test database on this
# server (see tests/conftest.py).
DATABASE_URL: postgresql+psycopg://postgres:postgres@localhost:5432/postgres
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- run: uv venv --python 3.13
- run: uv pip install -r pyproject.toml --extra test
- run: .venv/bin/python -m pytest -q
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
# Runs tsc -b (typecheck) followed by the production Vite build.
- run: npm run build