@@ -35,50 +35,44 @@ jobs:
3535 with :
3636 python-version : ${{ matrix.python-version }}
3737
38- # - name: Install dependencies
39- # run: |
40- # python -m pip install poetry
41- # poetry config virtualenvs.create false
42- # poetry install --no-interaction --no-ansi --without dev,docs
38+ - name : Install dependencies
39+ run : |
40+ python -m pip install poetry
41+ poetry config virtualenvs.create false
42+ poetry install --no-interaction --no-ansi --without dev,docs
4343
4444 - name : Set Model Cache Directory
4545 run : |
4646 if [[ "$RUNNER_OS" == "Windows" ]]; then
47- echo "$TEMP"
48- echo "MODEL_CACHE_DIR=$TEMP\\fastembed_cache"
49- echo "MODEL_CACHE_DIR=$TEMP\\fastembed_cache" >> $GITHUB_ENV
47+ echo "MODEL_CACHE_DIR=$TEMP/fastembed_cache" >> $GITHUB_ENV
5048 elif [[ "$RUNNER_OS" == "MacOS" ]]; then
51- echo "$TMPDIR"
52- echo "MODEL_CACHE_DIR=/var/folders/fastembed_cache"
5349 echo "MODEL_CACHE_DIR=/var/folders/fastembed_cache" >> $GITHUB_ENV
5450 else
55- echo "$TMPDIR"
56- echo "MODEL_CACHE_DIR=/tmp/fastembed_cache"
5751 echo "MODEL_CACHE_DIR=/tmp/fastembed_cache" >> $GITHUB_ENV
5852 fi
5953 shell : bash
6054
61- # - name: Cache Model Files
62- # uses: actions/cache@v4
63- # with:
64- # path: "${{ env.MODEL_CACHE_DIR }}"
65- # key: ml-models-cache-${{ runner.os }}-${{ hashFiles('**/test_*.py') }}
66- # restore-keys: |
67- # ml-models-cache-${{ runner.os }}-
55+ - name : Cache Model Files
56+ uses : actions/cache@v4
57+ with :
58+ path : " ${{ env.MODEL_CACHE_DIR }}"
59+ key : ml-models-cache-${{ runner.os }}-${{ hashFiles('**/test_*.py') }}
60+ restore-keys : |
61+ ml-models-cache-${{ runner.os }}-
6862
69- # - name: Run pytest
70- # run: |
71- # poetry run pytest tests/test_image_onnx_embeddings.py
63+ - name : Run pytest
64+ run : |
65+ poetry run pytest tests/test_image_onnx_embeddings.py
7266
73- # - name: List Cached Models (Linux)
74- # if: runner.os == 'Linux'
75- # run: ls -lah /tmp/fastembed_cache
76- # shell: bash
77- # - name: List Cached Models (Windows)
78- # if: runner.os == 'Windows'
79- # run: ls -la "$TEMP\\ fastembed_cache"
80- # shell: bash
81- # - name: List Cached Models (MacOS) tmp
82- # if: runner.os == 'MacOS'
83- # run: ls -lah /var/folders/
84- # shell: bash
67+ - name : List Cached Models (Linux)
68+ if : runner.os == 'Linux'
69+ run : ls -lah /tmp/fastembed_cache
70+ shell : bash
71+ - name : List Cached Models (Windows)
72+ if : runner.os == 'Windows'
73+ run : ls -la "$TEMP/ fastembed_cache"
74+ shell : bash
75+ - name : List Cached Models (MacOS) tmp
76+ if : runner.os == 'MacOS'
77+ run : ls -lah /var/folders/
78+ shell : bash
0 commit comments