Skip to content

updated

updated #58

Workflow file for this run

name: backend-ci
on:
push:
branches: ["main", "master"]
pull_request:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Setup Node
uses: actions/setup-node@v5
with:
node-version: "22"
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- name: Install backend dependencies
working-directory: backend
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Install frontend dependencies
working-directory: frontend
run: npm ci
- name: Ruff
working-directory: backend
run: python -m ruff check app tests
- name: Pytest
working-directory: backend
run: python -m pytest
- name: Frontend build
working-directory: frontend
run: npm run build
- name: Frontend unit tests
working-directory: frontend
run: npm run test