Skip to content

Commit 76140af

Browse files
committed
fix(CI): use the correct Python version for poetry
1 parent 228467f commit 76140af

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
@@ -162,9 +162,11 @@ jobs:
162162
fi
163163
echo "Installing python deps"
164164
poetry self add "poetry-dynamic-versioning[plugin]"
165-
poetry env use python3 # use the correct Python version we've set up
165+
poetry env use python$PYTHON_VERSION || poetry env use python3 # use the correct Python version we've set up
166166
poetry install --no-root --only=dev
167167
echo "Installed Dependencies"
168+
env:
169+
PYTHON_VERSION: ${{ matrix.python_version }}
168170
- name: Build Docs # only build docs once
169171
if: ${{ matrix.os == 'ubuntu-20.04' && matrix.python_version == '3.11' }}
170172
run: |

0 commit comments

Comments
 (0)