use gh cache for huggingface models

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2025-03-02 15:32:19 -05:00
parent 8dc0562542
commit 87d849792d

View File

@ -14,6 +14,11 @@ jobs:
- name: Set TESSDATA_PREFIX
run: |
echo "TESSDATA_PREFIX=$(dpkg -L tesseract-ocr-eng | grep tessdata$)" >> "$GITHUB_ENV"
- name: Cache Hugging Face models
uses: actions/cache@v4
with:
path: ~/.cache/huggingface
key: huggingface-cache
- uses: ./.github/actions/setup-poetry
with:
python-version: ${{ matrix.python-version }}