Feat/evaluation planner system prompt split #34
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 — Lint, Type-Check, Test & Build | |
| description: > | |
| Runs lint, format, type-check, tests, and build validation for both the | |
| Python backend and the Next.js viewer on all pull requests targeting | |
| development or main. | |
| on: | |
| pull_request: | |
| branches: | |
| - development | |
| - main | |
| jobs: | |
| python-tests: | |
| name: Python Tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: src/paint_by_language_model | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install dependencies | |
| run: uv pip install --system -e ".[dev]" | |
| - name: Run lint check | |
| run: ruff check . | |
| - name: Run format check | |
| run: ruff format --check . | |
| - name: Run type check | |
| run: mypy . | |
| - name: Run tests | |
| run: pytest | |
| typescript-tests: | |
| name: TypeScript Tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: src/viewer | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.15.0 | |
| - name: Get pnpm store directory | |
| shell: bash | |
| run: | | |
| echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
| - name: Setup pnpm cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.STORE_PATH }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Check formatting | |
| run: pnpm run format:check | |
| - name: Run linter | |
| run: pnpm run lint | |
| - name: Run type check | |
| run: pnpm run type-check | |
| - name: Run tests | |
| run: pnpm run test | |
| - name: Build | |
| run: pnpm run build |