a GitHub action to build and verify a Python package
name: Will it build?
on:
pull_request:
push:
branches: [main]
jobs:
will-it-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: jugmac00/will-it-build@main
This does a couple of things:
- clones the code
- installs Python
- builds your Python package via build
- verifies the build via
python -m twine check dist/*
You are very welcome to contribute!
This GitHub Action was inspired when reading Python in GitHub Actions by Hynek.
Thanks a lot for your awesome blog posts!
Also, I'd like to thank the developers of build and twine.
Thanks for spending your free time!