Skip to content

Commit

Permalink
Add package build step to actions
Browse files Browse the repository at this point in the history
h/t to Hynek as this is stolen wholesale from structlog's Actions
configuration.
  • Loading branch information
nickstenning committed Oct 30, 2021
1 parent 35ecc27 commit e5ea702
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,25 @@ jobs:
run: |
tox -e coverage
# TODO: get codecov working
# TODO: get codecov working

package:
name: "Build & verify package"
runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: "3.10"

- name: "Install build, check-wheel-contents, and twine"
run: "python -m pip install build twine check-wheel-contents"
- name: "Build package"
run: "python -m build --sdist --wheel ."
- name: "List result"
run: "ls -l dist"
- name: "Check wheel contents"
run: "check-wheel-contents dist/*.whl"
- name: "Check long_description"
run: "python -m twine check dist/*"

0 comments on commit e5ea702

Please sign in to comment.