File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: Tests
22
33on :
44 push :
5- branches : [ master, main, gpu ]
6- pull_request :
5+ branches : [ speedup-ci ] # master, main, gpu
6+ # pull_request:
77
88env :
99 CARGO_TERM_COLOR : always
@@ -34,11 +34,27 @@ jobs:
3434 uses : actions/setup-python@v5
3535 with :
3636 python-version : ${{ matrix.python-version }}
37+
3738 - name : Install dependencies
3839 run : |
3940 python -m pip install poetry
4041 poetry config virtualenvs.create false
4142 poetry install --no-interaction --no-ansi --without dev,docs
43+
44+ - name : Set Model Cache Directory
45+ run : |
46+ if [[ "$RUNNER_OS" == "Windows" ]]; then
47+ echo "MODEL_CACHE_DIR=$LOCALAPPDATA\\Temp\\fastembed_tmp" >> $GITHUB_ENV
48+ else
49+ echo "MODEL_CACHE_DIR=/tmp/fastembed_tmp" >> $GITHUB_ENV
50+ fi
51+ shell : bash
52+
53+ - name : Cache Model Files
54+ uses : actions/cache@v3
55+ with :
56+ path : ${{ env.MODEL_CACHE_DIR }}
57+ key : model-cache-${{ runner.os }}-${{ hashFiles('tests/**') }}
4258
4359 - name : Run pytest
4460 run : |
You can’t perform that action at this time.
0 commit comments