File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 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'
You can’t perform that action at this time.
0 commit comments