Introduce Continuous Integration (CI) to the starpy Python project

Gabor Szabo - Nov 21 '22 - - Dev Community

One of the first thing I do when start working on a project (either open source or in a corporation) is to make sure the is a Continuous Integration system set up. In this video you will see how I added GitHub Actions to the starpy project.

The points I made

  • Make sure you have the python requirements listed in the requirements.txt
  • Make sure you can run pytest and it will find your tests. (test filenames start with test_* )
  • Having a README.md is also a nice thing with instruction how to set up an environment and how to run the tests.

The content of the .github/workflows/ci.yaml file from the project that configures GitHub Actions can be seen on the original post here.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .