@@ -44,32 +44,15 @@ jobs:
4444 chmod +x $SCRIPT_FOLDER/*.sh
4545
4646 - name : Set Poetry to use in-project venvs
47- run : poetry config virtualenvs.in-project true
47+ run : poetry config --global virtualenvs.in-project true
4848
49- # - name: Cache Poetry virtualenv (filenameprocessor)
50- # if: matrix.python-version == '3.10'
51- # uses: actions/cache@v4
52- # with:
53- # path: ./filenameprocessor/.venv
54- # key: ${{ runner.os }}-venv-fp-py3.10-${{ hashFiles('filenameprocessor/poetry.lock') }}
55- # restore-keys: |
56- # ${{ runner.os }}-venv-fp-py3.10-
57-
58- - name : Cache Poetry virtualenv (delta_backend)
59- if : matrix.python-version == '3.11'
49+ - name : Cache global Poetry virtualenvs
6050 uses : actions/cache@v4
6151 with :
62- path : ./delta_backend/.venv
63- key : ${{ runner.os }}-venv-delta-py3.11- ${{ hashFiles('delta_backend /poetry.lock') }}
52+ path : ~/.cache/pypoetry/virtualenvs
53+ key : ${{ runner.os }}-poetry-global-venv-py${{ matrix.python-version }}- ${{ hashFiles('** /poetry.lock') }}
6454 restore-keys : |
65- ${{ runner.os }}-venv-delta-py3.11-
66-
67- # - name: Run unittest with filenameprocessor-coverage (S)
68- # if: matrix.python-version == '3.10'
69- # working-directory: filenameprocessor
70- # id: filenameprocessor
71- # continue-on-error: true
72- # run: $RUN_TEST 3.10 filenameprocessor filenameprocessor-coverage.xml
55+ ${{ runner.os }}-poetry-global-venv-py${{ matrix.python-version }}-
7356
7457 - name : Run unittest with coverage-delta
7558 if : matrix.python-version == '3.11'
0 commit comments