Skip to content

Commit 30f8006

Browse files
Trigger CI test
1 parent b51011b commit 30f8006

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/python-tests.yml

+13-9
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,17 @@ jobs:
4343
4444
- name: Set Model Cache Directory
4545
run: |
46-
if [[ "$RUNNER_OS" == "Windows" ]]; then
47-
echo "MODEL_CACHE_DIR=$TEMP/fastembed_cache" >> $GITHUB_ENV
48-
elif [[ "$RUNNER_OS" == "MacOS" ]]; then
49-
echo "MODEL_CACHE_DIR=/var/folders/fastembed_cache" >> $GITHUB_ENV
50-
else
51-
echo "MODEL_CACHE_DIR=/tmp/fastembed_cache" >> $GITHUB_ENV
52-
fi
46+
echo "MODEL_CACHE_DIR=./fastembed_cache" >> $GITHUB_ENV
5347
shell: bash
5448

5549
- name: Cache Model Files
5650
uses: actions/cache@v4
5751
with:
5852
path: "${{ env.MODEL_CACHE_DIR }}"
59-
key: ml-models-cache-${{ runner.os }}-${{ hashFiles('**/test_*.py') }}
53+
key: ml-models-cache-${{ hashFiles('**/test_*.py') }}
6054
restore-keys: |
61-
ml-models-cache-${{ runner.os }}-
55+
ml-models-cache-
56+
enableCrossOsArchive: true
6257

6358
- name: Run pytest
6459
run: |
@@ -75,4 +70,13 @@ jobs:
7570
- name: List Cached Models (MacOS) tmp
7671
if: runner.os == 'MacOS'
7772
run: ls -lah /var/folders/
73+
shell: bash
74+
75+
- name: List Cached Models
76+
run: |
77+
if [[ "$RUNNER_OS" == "Windows" ]]; then
78+
dir "${{ env.MODEL_CACHE_DIR }}"
79+
else
80+
ls -lah "${{ env.MODEL_CACHE_DIR }}"
81+
fi
7882
shell: bash

0 commit comments

Comments
 (0)