Skip to content

Commit a167c0b

Browse files
committed
ci: pin Poetry 1.8.5 for Python 3.9 compatibility
1 parent db3ee5f commit a167c0b

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest, windows-latest]
1515
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
16+
env:
17+
POETRY_VERSION: "1.8.5"
1618

1719
steps:
1820
- uses: actions/checkout@v4
@@ -32,15 +34,8 @@ jobs:
3234
architecture: x64
3335
cache: 'pip'
3436

35-
- name: Install Poetry (Windows)
36-
if: runner.os == 'Windows'
37-
run: |
38-
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
39-
echo "$HOME\AppData\Roaming\Python\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
40-
41-
- name: Install Poetry (Unix)
42-
if: runner.os != 'Windows'
43-
run: pip install --upgrade poetry
37+
- name: Install Poetry
38+
run: python -m pip install --upgrade "poetry==${{ env.POETRY_VERSION }}"
4439

4540
- name: Install Dependencies
4641
run: poetry install
@@ -97,6 +92,7 @@ jobs:
9792
needs: python
9893
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
9994
env:
95+
POETRY_VERSION: "1.8.5"
10096
PYTHON_SDK_E2E: "1"
10197
TRANSLOADIT_KEY: ${{ secrets.TRANSLOADIT_KEY }}
10298
TRANSLOADIT_SECRET: ${{ secrets.TRANSLOADIT_SECRET }}
@@ -119,7 +115,7 @@ jobs:
119115
cache: 'pip'
120116

121117
- name: Install Poetry
122-
run: pip install --upgrade poetry
118+
run: python -m pip install --upgrade "poetry==${{ env.POETRY_VERSION }}"
123119

124120
- name: Install dependencies
125121
run: poetry install

0 commit comments

Comments
 (0)