Skip to content

Merge pull request 'Fix writeback preview for missing Paperless docs … #26

Merge pull request 'Fix writeback preview for missing Paperless docs …

Merge pull request 'Fix writeback preview for missing Paperless docs … #26

Workflow file for this run

name: Quality Gates
on:
push:
paths:
- "backend/**"
- "frontend/**"
- ".pre-commit-config.yaml"
- ".github/workflows/quality-gates.yml"
pull_request:
paths:
- "backend/**"
- "frontend/**"
- ".pre-commit-config.yaml"
- ".github/workflows/quality-gates.yml"
jobs:
hook-parity:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Setup uv
uses: astral-sh/setup-uv@v5
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- name: Install backend dependencies
run: uv sync --project backend --group dev
- name: Install frontend dependencies
working-directory: frontend
run: npm ci
- name: Backend mypy
run: uv run --directory backend mypy --config-file pyproject.toml
- name: Frontend lint
working-directory: frontend
run: npm run lint
- name: Frontend type-check
working-directory: frontend
run: npm run type-check