Skip to content

Commit ec285c8

Browse files
chore: Trigger CI test
1 parent 58ee7cc commit ec285c8

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/python-tests.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ master, main, gpu ]
6-
pull_request:
5+
branches: [ speedup-ci ] # master, main, gpu
6+
# pull_request:
77

88
env:
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: |

0 commit comments

Comments
 (0)