Skip to content

Commit ee2d67b

Browse files
authored
chore: use GH cache for HF models (#183)
Signed-off-by: Panos Vagenas <[email protected]>
1 parent 53f6d09 commit ee2d67b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/checks.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
on:
22
workflow_call:
33

4+
env:
5+
HF_HUB_DOWNLOAD_TIMEOUT: "60"
6+
HF_HUB_ETAG_TIMEOUT: "60"
7+
48
jobs:
59
run-checks:
610
runs-on: ubuntu-latest
711
strategy:
812
matrix:
913
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1014
steps:
11-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
16+
- name: Cache Hugging Face models
17+
uses: actions/cache@v4
18+
with:
19+
path: ~/.cache/huggingface
20+
key: huggingface-cache-py${{ matrix.python-version }}
1221
- uses: ./.github/actions/setup-poetry
1322
with:
1423
python-version: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)