Update pyyaml requirement from >=6.0 to >=6.0.3 in /backend #52
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: | |
| # ── Backend ──────────────────────────────────────────────────────────────── | |
| backend-lint: | |
| name: Backend lint | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: backend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "latest" | |
| enable-cache: true | |
| - run: uv sync --dev | |
| - run: uv run ruff check app/ tests/ --output-format=github | |
| - run: uv run ruff format --check app/ tests/ | |
| backend-test: | |
| name: Backend tests | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis:7-alpine | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 5s | |
| --health-timeout 3s | |
| --health-retries 5 | |
| defaults: | |
| run: | |
| working-directory: backend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "latest" | |
| enable-cache: true | |
| - run: uv sync --dev | |
| - name: Run tests with coverage | |
| env: | |
| ODIN_REDIS_URL: redis://localhost:6379/0 | |
| ODIN_LLM_API_KEY: test-key | |
| run: | | |
| uv run pytest tests/ -v \ | |
| --tb=short \ | |
| --cov=app \ | |
| --cov-report=term-missing \ | |
| --cov-report=xml \ | |
| --cov-fail-under=60 | |
| - uses: codecov/codecov-action@v4 | |
| if: always() | |
| with: | |
| file: backend/coverage.xml | |
| flags: backend | |
| fail_ci_if_error: false | |
| backend-eval: | |
| name: Benchmark (rules-only) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: backend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "latest" | |
| enable-cache: true | |
| - run: uv sync | |
| - name: Run deterministic benchmark | |
| run: uv run python eval/runner.py --rules-only | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: eval-results | |
| path: backend/eval/results/latest_rules.json | |
| # ── Frontend ────────────────────────────────────────────────────────────── | |
| frontend: | |
| name: Frontend (type-check + build) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - run: npm ci | |
| - name: Type check | |
| run: npx tsc --noEmit | |
| - name: Build | |
| run: npm run build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: frontend-dist | |
| path: frontend/dist/ | |
| retention-days: 7 | |
| # ── Docker ──────────────────────────────────────────────────────────────── | |
| docker: | |
| name: Docker build | |
| runs-on: ubuntu-latest | |
| needs: [backend-lint, backend-test, frontend] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: docker/setup-buildx-action@v3 | |
| - name: Build backend image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: ./backend | |
| push: false | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| # ── Security ────────────────────────────────────────────────────────────── | |
| security: | |
| name: CodeQL security scan | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: github/codeql-action/init@v3 | |
| with: | |
| languages: python, javascript | |
| - uses: github/codeql-action/autobuild@v3 | |
| - uses: github/codeql-action/analyze@v3 |