feat: integrate tracing and infra #11
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] | |
| jobs: | |
| backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| run: pip install uv | |
| - name: Install backend dependencies | |
| run: cd backend && uv sync | |
| - name: Lint backend | |
| run: cd backend && uv run ruff check . && uv run ruff format . --check | |
| - name: Test backend | |
| run: cd backend && uv run pytest | |
| frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: cd frontend && npm ci | |
| - name: Type check | |
| run: cd frontend && npx tsc --noEmit | |
| - name: Lint | |
| run: cd frontend && npm run lint && npm run format | |
| - name: Test | |
| run: cd frontend && npm run test | |
| eval: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate eval questions | |
| run: python3 eval/runner.py --check |