Skip to content

Commit f6dffa7

Browse files
committed
Update workflows
1 parent 4e36017 commit f6dffa7

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ jobs:
2222
python-version: 3.8
2323
- name: Install and set up Poetry
2424
run: |
25-
curl -fsS -o get-poetry.py https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py
26-
python get-poetry.py --preview -y
25+
curl -fsS -o install-poetry.py https://raw.githubusercontent.com/sdispater/poetry/master/install-poetry.py
26+
python install-poetry.py --preview -y
27+
28+
- name: Update PATH
29+
shell: bash
30+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
31+
2732
- name: Build distributions
2833
run: |
2934
source $HOME/.poetry/env

.github/workflows/tests.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,18 @@ jobs:
4343
- name: Install Poetry
4444
shell: bash
4545
run: |
46-
curl -fsS -o get-poetry.py https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py
47-
python get-poetry.py --preview -y
48-
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
49-
echo "%USERPROFILE%/.poetry/bin" >> $GITHUB_PATH
46+
curl -fsS -o install-poetry.py https://raw.githubusercontent.com/sdispater/poetry/master/install-poetry.py
47+
python install-poetry.py --preview -y
48+
49+
- name: Update PATH
50+
if: ${{ matrix.os != 'Windows' }}
51+
shell: bash
52+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
53+
54+
- name: Update Path for Windows
55+
if: ${{ matrix.os == 'Windows' }}
56+
shell: bash
57+
run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH
5058

5159
- name: Setup Poetry
5260
shell: bash

0 commit comments

Comments
 (0)