Skip to content

Commit be2f4b2

Browse files
committed
fix(CI): remove old virtual environments for poetry
1 parent 76140af commit be2f4b2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,10 @@ jobs:
162162
fi
163163
echo "Installing python deps"
164164
poetry self add "poetry-dynamic-versioning[plugin]"
165-
poetry env use python$PYTHON_VERSION || poetry env use python3 # use the correct Python version we've set up
165+
poetry env remove --all
166+
poetry env use python3 # use the correct Python version we've set up
166167
poetry install --no-root --only=dev
167168
echo "Installed Dependencies"
168-
env:
169-
PYTHON_VERSION: ${{ matrix.python_version }}
170169
- name: Build Docs # only build docs once
171170
if: ${{ matrix.os == 'ubuntu-20.04' && matrix.python_version == '3.11' }}
172171
run: |

0 commit comments

Comments
 (0)