Skip to content

Commit 654615b

Browse files
authored
Merge pull request #790 from pytest-dev/ab/fix-ci
Update Poetry to version 2.2.1 in CI workflow
2 parents 01c99a6 + 486835d commit 654615b

File tree

4 files changed

+735
-41
lines changed

4 files changed

+735
-41
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
workflow_dispatch:
77

8+
env:
9+
POETRY_VERSION: "2.2.1"
10+
811
jobs:
912
build:
1013
name: Build package
@@ -15,15 +18,14 @@ jobs:
1518
uses: actions/setup-python@v5
1619
with:
1720
cache: "pip"
18-
- name: Install pypa/build
19-
run: >-
20-
python3 -m pip install --user
21-
build
22-
twine
21+
- name: Install poetry
22+
run: python3 -m pip install poetry==${{ env.POETRY_VERSION }}
23+
- name: Install build dependencies
24+
run: poetry install --only build
2325
- name: Build a binary wheel and a source tarball
24-
run: python3 -m build
26+
run: poetry run python -m build
2527
- name: Check the distribution files with `twine`
26-
run: twine check --strict dist/*
28+
run: poetry run twine check --strict dist/*
2729
- name: Upload artifact
2830
id: artifact-upload-step
2931
uses: actions/upload-artifact@v4
@@ -36,6 +38,7 @@ jobs:
3638
runs-on: ubuntu-latest
3739
needs: build
3840
strategy:
41+
fail-fast: false
3942
matrix:
4043
include:
4144
- python-version: "3.9"
@@ -70,7 +73,8 @@ jobs:
7073

7174
- name: Install poetry
7275
run: |
73-
python -m pip install poetry==2.0.0
76+
# When upgrading poetry, remember to upgrade poetry-core in `pyproject.toml` (`build-system.requires`)
77+
python -m pip install poetry==${{ env.POETRY_VERSION }}
7478
7579
- name: Configure poetry
7680
run: |

0 commit comments

Comments
 (0)