41 lines
953 B
YAML
41 lines
953 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
backend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install backend
|
|
run: |
|
|
python -m pip install -U pip
|
|
pip install -e backend[dev]
|
|
- name: Backend tests
|
|
run: pytest backend/tests -q
|
|
|
|
frontend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: npm
|
|
cache-dependency-path: frontend/package-lock.json
|
|
- name: Install frontend
|
|
working-directory: frontend
|
|
run: npm ci
|
|
- name: Frontend tests
|
|
working-directory: frontend
|
|
run: npm test
|
|
- name: Frontend build
|
|
working-directory: frontend
|
|
run: npm run build
|