Lift audit form state to App so it survives tab switches #19
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: | |
| jobs: | |
| backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Install deps | |
| working-directory: backend | |
| run: uv sync --frozen | |
| - name: Lint (ruff) | |
| working-directory: backend | |
| run: | | |
| uv run ruff format --check app tests | |
| uv run ruff check app tests | |
| - name: Type check (ty) | |
| working-directory: backend | |
| run: uv run ty check app tests | |
| # The deterministic test suite includes the leak guard and every scorer / | |
| # matcher / janitor check. It needs no Mongo and no API key — the keyed eval | |
| # *replay* (which needs recorded completions in Mongo) is a local step. | |
| - name: Tests + leak guard | |
| working-directory: backend | |
| run: uv run pytest -q | |
| frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Install deps | |
| working-directory: frontend | |
| run: npm ci | |
| - name: Typecheck + build | |
| working-directory: frontend | |
| run: npm run build |