Skip to content

fix: quickstart token provisioning and AWS-creds plumbing #81

fix: quickstart token provisioning and AWS-creds plumbing

fix: quickstart token provisioning and AWS-creds plumbing #81

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
# ── Python backend ──────────────────────────────────────────────────────────
backend-lint:
name: Backend — lint & typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: uv sync --extra dev
- name: Ruff lint
run: uv run ruff check backend/src tests
- name: Ruff format check
run: uv run ruff format --check backend/src tests
- name: Mypy typecheck
run: uv run mypy backend/src/analytics_agent
backend-test:
name: Backend — unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: uv sync --extra dev
- name: Run unit tests
run: uv run pytest tests/unit -v
# ── Playwright e2e ──────────────────────────────────────────────────────────
e2e:
name: E2E — Playwright
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install Python dependencies
run: uv sync
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install frontend dependencies
run: cd frontend && pnpm install --frozen-lockfile
- name: Build frontend
run: cd frontend && pnpm build
- name: Install Playwright browsers
run: cd frontend && npx playwright install chromium --with-deps
- name: Run e2e tests
run: npx --prefix frontend playwright test --config tests/e2e/playwright.config.ts
# ── Frontend ────────────────────────────────────────────────────────────────
frontend-lint:
name: Frontend — typecheck & lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: TypeScript typecheck + build
run: pnpm build
- name: ESLint
run: pnpm lint