Skip to content

Commit a072574

Browse files
author
Jesse
authored
Github Actions Fix: poetry install fails for python 3.7 tests (#208)
snok/install-poetry@v1 installs the latest version of Poetry The latest version of poetry released on 20 August 2023 (four days ago as of this commit) which drops support for Python 3.7, causing our github action to fail. Until we complete #207 we need to conditionally install the last version of poetry that supports Python 3.7 (poetry==1.5.1) Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
1 parent 54a6102 commit a072574

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/code-quality-checks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
- name: Install Poetry
3030
uses: snok/install-poetry@v1
3131
with:
32+
version: ${{ matrix.python-version == 3.7 && '1.5.1' || 'latest' }}
3233
virtualenvs-create: true
3334
virtualenvs-in-project: true
3435
installer-parallel: true
@@ -80,6 +81,7 @@ jobs:
8081
- name: Install Poetry
8182
uses: snok/install-poetry@v1
8283
with:
84+
version: ${{ matrix.python-version == 3.7 && '1.5.1' || 'latest' }}
8385
virtualenvs-create: true
8486
virtualenvs-in-project: true
8587
installer-parallel: true
@@ -132,6 +134,7 @@ jobs:
132134
- name: Install Poetry
133135
uses: snok/install-poetry@v1
134136
with:
137+
version: ${{ matrix.python-version == 3.7 && '1.5.1' || 'latest' }}
135138
virtualenvs-create: true
136139
virtualenvs-in-project: true
137140
installer-parallel: true

0 commit comments

Comments
 (0)