Skip to content

Commit b336c38

Browse files
committed
Pinning newer Docling for EasyOCR deprecation and adjusted CI caching
1 parent c4248f8 commit b336c38

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,23 +102,15 @@ jobs:
102102
enable-cache: true
103103
python-version: ${{ matrix.python-version }}
104104
- run: uv sync
105-
- run: uv run pytest -n auto packages --ignore=packages/paper-qa-docling
106-
env:
107-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
108-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
109-
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
110-
SEMANTIC_SCHOLAR_API_KEY: ${{ secrets.SEMANTIC_SCHOLAR_API_KEY }}
111-
CROSSREF_API_KEY: ${{ secrets.CROSSREF_API_KEY }}
112-
- name: Cache Docling and EasyOCR models
105+
- name: Cache Docling models
113106
id: cache-models
114107
uses: actions/cache@v4
115108
with:
116109
path: |
117110
~/.cache/docling
118-
~/.EasyOCR
119-
key: ${{ runner.os }}-docling-easyocr-${{ hashFiles('uv.lock') }}
120-
restore-keys: ${{ runner.os }}-docling-easyocr-
121-
- run: uv run pytest packages/paper-qa-docling # Don't use `-n auto` to avoid race condition with EasyOCR model downloads
111+
key: ${{ runner.os }}-docling-${{ hashFiles('uv.lock') }}
112+
restore-keys: ${{ runner.os }}-docling-
113+
- run: uv run pytest -n auto packages
122114
env:
123115
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
124116
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

packages/paper-qa-docling/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ requires-python = ">=3.11"
3636

3737
[project.optional-dependencies]
3838
dev = [
39+
"docling>=2.56", # Pin for EasyOCR deprecation
3940
"fhlmi>=0.39", # Pin for bytes_to_string
4041
"paper-qa>=5.23", # Pin for PDFParserFn
4142
"pytest-asyncio",

uv.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)