Skip to content

Commit 23c4e75

Browse files
authored
Add job to install & verify package (#247)
1 parent 16bde17 commit 23c4e75

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,21 @@ jobs:
5151
pip install -U setuptools
5252
pip install -U "tox>=3.23.0,<4"
5353
- run: tox -e lint
54+
package:
55+
name: "Build & verify package"
56+
runs-on: "ubuntu-latest"
57+
steps:
58+
- uses: "actions/checkout@v2"
59+
- uses: "actions/setup-python@v2"
60+
with:
61+
python-version: "3.8"
62+
- name: "Install build, check-wheel-content, and twine"
63+
run: "python -m pip install build twine check-wheel-contents"
64+
- name: "Build package"
65+
run: "python -m build --sdist --wheel ."
66+
- name: "List result"
67+
run: "ls -l dist"
68+
- name: "Check wheel contents"
69+
run: "check-wheel-contents dist/*.whl"
70+
- name: "Check long_description"
71+
run: "python -m twine check dist/*"

0 commit comments

Comments
 (0)