Skip to content

Commit 2535988

Browse files
committed
fix(CI): use the correct Python version for poetry
1 parent be2f4b2 commit 2535988

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

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

0 commit comments

Comments
 (0)