Skip to content

Commit ea22ce3

Browse files
committed
Updated the workflow to ensure that the correct poetry version is used.
1 parent b3ad78b commit ea22ce3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/integration.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ jobs:
2727

2828
- name: Install poetry
2929
run: |
30-
[[ "${{ matrix.python-version }}" < "3.9" ]] && pipx install "poetry==1.8.5" || pipx install poetry
30+
IFS=. read -r major minor <<< "${{ matrix.python-version }}"
31+
if [ "$major" -eq 3 ] && [ "$minor" -lt 9 ]; then
32+
echo "Installing Poetry 1.x for Python ${{ matrix.python-version }}"
33+
pipx install "poetry==1.8.5"
34+
else
35+
echo "Installing latest Poetry for Python ${{ matrix.python-version }}"
36+
pipx install poetry
37+
fi
3138
3239
- name: Setup Python
3340
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)