Skip to content

Commit 3944805

Browse files
Use poetry to install twine/build
1 parent 9165c69 commit 3944805

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- name: Set up Python
1515
uses: actions/setup-python@v5
16-
- name: Install pypa/build
16+
- name: Install pypa/build using poetry
1717
run: >-
18-
python3 -m pip install --user build twine pkginfo --upgrade
18+
python3 -m pip install --user poetry==2.2.1
19+
python3 -m poetry config virtualenvs.in-project true
20+
python3 -m poetry install --only=build
21+
python3 -m poetry install --user build twine pkginfo --upgrade
1922
- name: Build a binary wheel and a source tarball
2023
run: python3 -m build
21-
# - name: Check the distribution files with `twine`
22-
# run: python3 -m twine check --strict dist/*
24+
- name: Check the distribution files with `twine`
25+
run: python3 -m twine check --strict dist/*
2326
- name: Upload artifact
2427
id: artifact-upload-step
2528
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)