Skip to content

Commit 329ca7a

Browse files
Trigger CI test
1 parent c968ab3 commit 329ca7a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/python-tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Set Model Cache Directory
4545
run: |
4646
if [[ "$RUNNER_OS" == "Windows" ]]; then
47-
echo "MODEL_CACHE_DIR=$LOCALAPPDATA\\Temp\\fastembed_cache" >> $GITHUB_ENV
47+
echo "MODEL_CACHE_DIR=%TEMP%\\fastembed_cache" >> $GITHUB_ENV
4848
else
4949
echo "MODEL_CACHE_DIR=/tmp/fastembed_cache" >> $GITHUB_ENV
5050
fi
@@ -54,18 +54,13 @@ jobs:
5454
uses: actions/cache@v3
5555
with:
5656
path: ${{ env.MODEL_CACHE_DIR }}
57-
key: ml-models-cache-${{ hashFiles('**/test_*.py') }}
57+
key: ml-models-cache-${{ runner.os }}-${{ hashFiles('**/test_*.py') }}
5858
restore-keys: |
5959
ml-models-cache-${{ runner.os }}-
6060
6161
- name: Run pytest
6262
run: |
6363
poetry run pytest tests/test_image_onnx_embeddings.py
64-
65-
- name: List Cached Models (Windows) 2
66-
if: runner.os == 'Windows'
67-
run: dir %TEMP%\\fastembed_cache
68-
shell: cmd
6964
7065
- name: List Cached Models (Linux/macOS) - /tmp
7166
if: runner.os != 'Windows'

0 commit comments

Comments
 (0)