Skip to content

Commit 0ee4154

Browse files
brian-c-mooreclaude
andcommitted
Fix CI timeout: cache HuggingFace tokenizer and increase test timeout
Tests download the GPT-2 tokenizer from HuggingFace on first run. On CI runners this can stall and exceed the 120s timeout. Added HuggingFace cache step and increased timeout to 300s. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8f51dda commit 0ee4154

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ jobs:
2626
python -m pip install --upgrade pip
2727
pip install -e ".[dev]"
2828
29+
- name: Cache HuggingFace models
30+
uses: actions/cache@v4
31+
with:
32+
path: ~/.cache/huggingface
33+
key: hf-${{ runner.os }}-${{ matrix.python-version }}
34+
2935
- name: Run unit tests
3036
run: |
31-
python -m pytest tests/ -v --timeout=120 -k "not test_integration and not test_trained_model"
37+
python -m pytest tests/ -v --timeout=300 -k "not test_integration and not test_trained_model"

0 commit comments

Comments
 (0)