GitHub actions help developers to automate workflows. You can run tests, build and publish packages, check coverage, lint the codebase, and do tons of other cool stuff, using GitHub actions.
Some of the best and most popular python projects are using GitHub actions to automate their workflow.
GitHub actions are defined using a yaml file under the .github/workflows
folder.
If you are completely new to GitHub actions, the official documentation can help: https://docs.github.com/en/actions
The best way to learn is by seeing examples. Below is the compilation of links to great GitHub action workflows.
(the order of listing is completely random)
poetry https://github.com/python-poetry/poetry/tree/master/.github/workflows
fastapi https://github.com/tiangolo/fastapi/tree/master/.github/workflows
mkdocs https://github.com/mkdocs/mkdocs/tree/master/.github/workflows
material mkdocs https://github.com/squidfunk/mkdocs-material/tree/master/.github/workflows
typer https://github.com/tiangolo/typer/tree/master/.github/workflows
pytest https://github.com/pytest-dev/pytest/tree/main/.github/workflows
pylint https://github.com/PyCQA/pylint/tree/master/.github/workflows
mypy https://github.com/python/mypy/tree/master/.github/workflows
requests https://github.com/psf/requests/tree/master/.github/workflows
aiohttp https://github.com/aio-libs/aiohttp/tree/master/.github/workflows
black https://github.com/psf/black/tree/master/.github/workflows
python-youtube https://github.com/sns-sdks/python-youtube/tree/master/.github/workflows
pygithub https://github.com/PyGithub/PyGithub/tree/master/.github/workflows
coverage https://github.com/nedbat/coveragepy/tree/master/.github/workflows