Running tox with GitHub Actions

Even if you are careful to run tox all the time before committing or merging your code, it’s really nice to have a CI system set up to always run tox on all changes. Even though GitHub Actions has only been available since 2019, it’s already very popular for Python projects.

GitHub Actions[40] is a cloud-based CI system provided by GitHub. If you are using GitHub to store your project, Actions are a natural CI option.

CI Alternatives

images/aside-icons/info.png

GitHub Actions is just one example of a continuous integration tool. There are many other great tools available, such as GitLab CI, Bitbucket Pipelines, CircleCI, and Jenkins.

Get Python Testing with pytest now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.