Photo by Hitesh Choudhary on Unsplash
Recently, I changed my CI from Travis to GitHub Actions. GitHub Actions is handy and useful for testing, publishing Python packages.
Testing Python code on GitHub Actions Migration from Travis is super easy, just writing a simple workflow like:
The benefits of GitHub Actions for Python are:
We can use build matrix (e.g., OS and Python versions) like Travis Launch time of GitHub is faster than Travis Easy for additional dependency installation by using uses syntax, which uses another workflow For example, installing JDK can be written as: