Skip to content

Refactor AI documentation structure and workflows #32

Refactor AI documentation structure and workflows

Refactor AI documentation structure and workflows #32

Workflow file for this run

name: CI
on:
push:
branches: ["main", "master"]
pull_request:
jobs:
quality:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Install dependencies
run: uv sync --all-extras --index-url https://pypi.org/simple
- name: Ruff lint
run: uv run ruff check src tests scripts
- name: Ruff format check
run: uv run ruff format --check src tests scripts
- name: Mypy
run: uv run mypy src
- name: Pytest
run: uv run pytest
frontend:
name: Frontend Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install frontend dependencies
run: pnpm --prefix frontend install --frozen-lockfile
- name: Frontend lint
run: pnpm --prefix frontend lint
- name: Frontend typecheck
run: pnpm --prefix frontend typecheck
- name: Frontend build
run: pnpm --prefix frontend build