Merge PR #2: pdf-inspector pre-flight detection for PDF force-OCR dec… #5
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: | |
| 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 |