Member-only story
Automated Python Application Testing Using GitHub Actions
How to run automatic testing on the push
command
Testing your application is a crucial step in any software development or data science workflow. Testing allows you to ensure that the code functions as expected, reduces the likelihood of bugs or errors, and increases the overall quality and reliability of the software.
In some cases though testing can often be a burden and yourself or others may forget to run the testing suite before you commit to your repository. This is where automating your testing workflow through GitHub Actions comes into play, to reduce the manual effort required, ensure consistent testing and be able to detect issues early on.
In this article I will cover how to set up a GitHub Action workflow to automate the testing of your application. This includes creating a GitHub Action workflow, setting the trigger events, creating the jobs to run and adding a badge to your repository to show the tests are passing. By the end of this you will have a fully automated testing workflow that you can show to the world that your code is working as expected!
What is a GitHub Action?
As per the description provided by GitHub:
GitHub Actions makes it easy to automate…