Skip to content

Commit 99a9f27

Browse files
committed
fix(CI): remove old poetry cache
1 parent 2535988 commit 99a9f27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test-and-publish.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ jobs:
146146
- uses: actions/setup-python@v5
147147
with:
148148
python-version: ${{ matrix.python_version }}
149+
- name: Remove old poetry cache
150+
run: rm -rf ~/.cache/pypoetry
151+
if: ${{ matrix.os == 'pi' }}
149152
- name: Setup Poetry
150153
uses: snok/install-poetry@v1
151154
with:
@@ -162,7 +165,6 @@ jobs:
162165
fi
163166
echo "Installing python deps"
164167
poetry self add "poetry-dynamic-versioning[plugin]"
165-
poetry env remove --all -v
166168
poetry env use python$PYTHON_VERSION || poetry env use python3 # use the correct Python version we've set up
167169
poetry install --no-root --only=dev
168170
echo "Installed Dependencies"

0 commit comments

Comments
 (0)