Skip to content

Commit 2d76b8c

Browse files
authored
Merge pull request #82 from python-openapi/fix/workflows-fix
workflows fix
2 parents 84f7241 + 15d7dc7 commit 2d76b8c

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

.github/workflows/build-docs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ jobs:
2020
id: full-python-version
2121
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
2222

23-
- name: Bootstrap poetry
24-
run: |
25-
curl -sL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - -y
26-
echo "$HOME/.local/bin" >> $GITHUB_PATH
23+
- name: Set up poetry
24+
uses: Gr1N/setup-poetry@v8
2725

2826
- name: Configure poetry
2927
run: poetry config virtualenvs.in-project true

.github/workflows/python-publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ jobs:
2020
with:
2121
python-version: '3.x'
2222

23-
- name: Bootstrap poetry
24-
run: |
25-
curl -sL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - -y
26-
echo "$HOME/.local/bin" >> $GITHUB_PATH
23+
- name: Set up poetry
24+
uses: Gr1N/setup-poetry@v8
2725

2826
- name: Build
2927
run: poetry build

.github/workflows/python-test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ jobs:
2828
id: full-python-version
2929
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
3030

31-
- name: Bootstrap poetry
32-
run: |
33-
curl -sL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - -y
34-
echo "$HOME/.local/bin" >> $GITHUB_PATH
31+
- name: Set up poetry
32+
uses: Gr1N/setup-poetry@v8
3533

3634
- name: Configure poetry
3735
run: poetry config virtualenvs.in-project true
@@ -77,10 +75,8 @@ jobs:
7775
id: full-python-version
7876
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
7977

80-
- name: Bootstrap poetry
81-
run: |
82-
curl -sL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python - -y
83-
echo "$HOME/.local/bin" >> $GITHUB_PATH
78+
- name: Set up poetry
79+
uses: Gr1N/setup-poetry@v8
8480

8581
- name: Configure poetry
8682
run: poetry config virtualenvs.in-project true

0 commit comments

Comments
 (0)