Skip to content

Merge PR #2: pdf-inspector pre-flight detection for PDF force-OCR dec… #5

Merge PR #2: pdf-inspector pre-flight detection for PDF force-OCR dec…

Merge PR #2: pdf-inspector pre-flight detection for PDF force-OCR dec… #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
lint-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/mcp-server
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
# The unit tests are deliberately EasyOCR/PyTorch-free, so we install only
# the lightweight runtime deps plus the dev tools — no multi-hundred-MB
# torch download needed.
# ruff is pinned to the version locked in uv.lock — an unpinned install
# pulls the latest release, whose new rules can turn CI red without any
# code change. Bump this pin together with uv.lock.
- name: Install dependencies
run: python -m pip install --upgrade pip numpy pillow requests pytest ruff==0.15.20
- name: Lint
run: ruff check .
- name: Test
run: pytest -q