haiku.rag/.github/workflows
Yiorgis Gozadinos a65757807e
Use cached HuggingFace models offline in test job
The Qwen tokenizer and cross-encoder pre-downloads call the HF metadata
API to revalidate even on a cache hit; a 429 there propagates instead of
falling back to the cached files, failing CI on HF throttling.

Skip the pre-download steps when the cache is restored and run pytest
with HF_HUB_OFFLINE/TRANSFORMERS_OFFLINE on a hit, so cached models are
used without any network revalidation; allow online on a miss so a fresh
cache key still populates. Rename the cache key so the snapshot
re-populates with every test model (the old key predated the
cross-encoder step and never cached it).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 12:11:33 +03:00
..
build-docs.yml Straight migration to zensical 2026-05-20 15:44:39 +03:00
build-publish-slim.yml Use pypi scoped token for slim 2025-11-05 13:36:52 +02:00
build-publish.yml
docker-publish-slim.yml haiku.rag-slim docker image 2025-11-17 14:18:41 +02:00
publish-mcp.yml
test.yml Use cached HuggingFace models offline in test job 2026-06-03 12:11:33 +03:00