Skip to content

Commit 7346356

Browse files
authored
Fix poetry installation (#282)
1 parent 7cc43fd commit 7346356

File tree

3 files changed

+111
-84
lines changed

3 files changed

+111
-84
lines changed

.github/workflows/_integration_tests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
env:
19-
POETRY_VERSION: "1.7.1"
19+
POETRY_VERSION: "2.1.1"
2020

2121
jobs:
2222
build:
@@ -38,14 +38,10 @@ jobs:
3838
poetry-version: ${{ env.POETRY_VERSION }}
3939
cache-key: core
4040

41-
- name: Install dependencies
41+
- name: Install together with dependencies
4242
shell: bash
4343
run: poetry install --with quality,tests
4444

45-
- name: Install together
46-
run: |
47-
poetry run pip install .
48-
4945
- name: Run integration tests
5046
shell: bash
5147
env:

.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)