Skip to content

Commit e2ebdc4

Browse files
committed
global
1 parent d171c96 commit e2ebdc4

2 files changed

Lines changed: 6 additions & 23 deletions

File tree

.github/scripts/run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ echo "Using Python Version $PYTHON_VERSION"
2020
##############
2121

2222
# poetry config virtualenvs.in-project true
23-
poetry config --local virtualenvs.in-project true
23+
poetry config --global virtualenvs.in-project true
2424

2525
# Only create/use the env and install if .venv does not exist
2626
echo "Checking for Poetry virtual environment (.venv)"

.github/workflows/sonarcloud.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)