Skip to content

Commit 9c49866

Browse files
committed
fix poetry installation
1 parent 8575e53 commit 9c49866

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/upload-to-pypi.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
env:
8+
POETRY_VERSION: "2.1.1"
9+
710
jobs:
811
build:
912
runs-on: ubuntu-latest
@@ -13,13 +16,12 @@ jobs:
1316

1417
steps:
1518
- uses: actions/checkout@v4
16-
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v5
19+
- name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }}
20+
uses: "./.github/actions/poetry_setup"
1821
with:
1922
python-version: ${{ matrix.python-version }}
20-
21-
- name: Install poetry
22-
run: curl -sSL https://install.python-poetry.org | python3 -
23+
poetry-version: ${{ env.POETRY_VERSION }}
24+
cache-key: core
2325

2426
- name: Set up cache
2527
uses: actions/cache@v4

0 commit comments

Comments
 (0)