Skip to content

Commit f8a0ff8

Browse files
committed
CI: update Poetry installation command to the latest one
1 parent 788e92d commit f8a0ff8

File tree

5 files changed

+338
-336
lines changed

5 files changed

+338
-336
lines changed

.github/workflows/ci-linux.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
python-version: [3.7, 3.8, 3.9, 3.10, 3.11]
11+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1212

1313
steps:
1414
- uses: actions/checkout@v2
@@ -21,14 +21,15 @@ jobs:
2121
- name: Upgrade pip
2222
run: |
2323
python -m pip install --upgrade pip
24+
python -m pip install --upgrade setuptools
2425
2526
- name: Install Poetry
2627
run: |
27-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
28+
curl -sSL https://install.python-poetry.org | python3 -
2829
2930
- name: Add Poetry to PATH
3031
run: |
31-
echo "PATH=$PATH:$HOME/.poetry/bin" >> $GITHUB_ENV
32+
echo "PATH=$PATH:$HOME/.local/bin" >> $GITHUB_ENV
3233
3334
- name: Install dependencies
3435
run: |

.github/workflows/ci-mac.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
python-version: [3.7, 3.8, 3.9, 3.10, 3.11]
11+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1212

1313
steps:
1414
- uses: actions/checkout@v2
@@ -24,11 +24,11 @@ jobs:
2424
2525
- name: Install Poetry
2626
run: |
27-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
27+
curl -sSL https://install.python-poetry.org | python3 -
2828
2929
- name: Add Poetry to PATH
3030
run: |
31-
echo "PATH=$PATH:$HOME/.poetry/bin" >> $GITHUB_ENV
31+
echo "PATH=$PATH:~/.local/bin" >> $GITHUB_ENV
3232
3333
- name: Install dependencies
3434
run: |

.github/workflows/ci-windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
python-version: [3.7, 3.8, 3.9, 3.10, 3.11]
11+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1212

1313
steps:
1414
- uses: actions/checkout@v2
@@ -24,11 +24,11 @@ jobs:
2424
2525
- name: Install Poetry
2626
run: |
27-
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python
27+
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
2828
2929
- name: "Poetry: add to %PATH%"
3030
run: |
31-
echo "$env:USERPROFILE\.poetry\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
31+
echo "%APPDATA%\pypoetry" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
3232
3333
- name: "Print Debug info"
3434
run: |

0 commit comments

Comments
 (0)