Skip to content

feat(frontend): surface normalized errors with toasts and inline feed… #14

feat(frontend): surface normalized errors with toasts and inline feed…

feat(frontend): surface normalized errors with toasts and inline feed… #14

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('frontend/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install frontend dependencies
working-directory: frontend
run: |
if [ -f package-lock.json ]; then
npm ci
else
npm install
fi
- name: Lint (Python and frontend)
run: make lint
- name: Type check (Python)
run: make typecheck
- name: Run tests with coverage
env:
COVERAGE_FILE: coverage.xml
run: |
coverage run -m pytest
coverage xml
coverage-badge -o coverage.svg
- name: Upload coverage artifacts
uses: actions/upload-artifact@v4
with:
name: coverage
path: |
coverage.xml
coverage.svg