Files
mission-control/.github/workflows/ci.yml
2026-02-07 09:01:53 +00:00

64 lines
1.4 KiB
YAML

name: CI
on:
pull_request:
push:
branches: [master]
# Allow maintainers to manually kick CI when GitHub doesn't create a run for a new head SHA.
workflow_dispatch:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
run: python -m pip install --upgrade pip uv
- name: Cache uv
uses: actions/cache@v4
with:
path: |
~/.cache/uv
backend/.venv
key: uv-${{ runner.os }}-${{ hashFiles('backend/uv.lock') }}
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: make setup
- name: Run checks
env:
# Keep CI builds deterministic and secretless.
NEXT_TELEMETRY_DISABLED: "1"
run: make check
- name: Upload coverage report (backend)
if: always()
uses: actions/upload-artifact@v4
with:
name: backend-coverage
path: backend/coverage.xml
if-no-files-found: warn