chore: update PR template r1 #115
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| # ── Setup Python + uv ────────────────────────────────────────── | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | |
| with: | |
| python-version: '3.12' | |
| - uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: backend/uv.lock | |
| # ── Setup Node + pnpm ────────────────────────────────────────── | |
| - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: '22' | |
| cache: 'pnpm' | |
| cache-dependency-path: frontend/pnpm-lock.yaml | |
| # ── Install all dependencies ──────────────────────────────────── | |
| - name: Install backend dependencies | |
| working-directory: backend | |
| run: uv sync --group dev | |
| - name: Install frontend dependencies | |
| working-directory: frontend | |
| run: pnpm install --frozen-lockfile | |
| - name: Install root dependencies | |
| run: pnpm install | |
| # ── Dependency audit ──────────────────────────────────────────── | |
| - name: Backend dependency audit | |
| working-directory: backend | |
| run: uv run pip-audit | |
| continue-on-error: true | |
| - name: Frontend dependency audit | |
| working-directory: frontend | |
| run: pnpm audit --prod | |
| continue-on-error: true | |
| # ── Lint ──────────────────────────────────────────────────────── | |
| - name: Backend lint | |
| working-directory: backend | |
| run: uv run ruff check . | |
| - name: Frontend lint | |
| working-directory: frontend | |
| run: pnpm run lint | |
| # ── Type check ───────────────────────────────────────────────── | |
| - name: Backend type check | |
| working-directory: backend | |
| run: uv run mypy src/ | |
| - name: Frontend type check | |
| working-directory: frontend | |
| run: pnpm run type-check | |
| # ── Test ──────────────────────────────────────────────────────── | |
| - name: Backend tests | |
| working-directory: backend | |
| run: uv run pytest tests/ -v | |
| - name: Frontend tests | |
| working-directory: frontend | |
| run: pnpm test | |
| # ── Build frontend ───────────────────────────────────────────── | |
| - name: Build frontend | |
| working-directory: frontend | |
| env: | |
| VITE_API_BASE_URL: https://placeholder.example.com | |
| run: pnpm run build |