File tree Expand file tree Collapse file tree 4 files changed +735
-41
lines changed
Expand file tree Collapse file tree 4 files changed +735
-41
lines changed Original file line number Diff line number Diff line change 55 pull_request :
66 workflow_dispatch :
77
8+ env :
9+ POETRY_VERSION : " 2.2.1"
10+
811jobs :
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
3638 runs-on : ubuntu-latest
3739 needs : build
3840 strategy :
41+ fail-fast : false
3942 matrix :
4043 include :
4144 - python-version : " 3.9"
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 : |
You can’t perform that action at this time.
0 commit comments