It's a very basic project that shows how to set up a python package that contain a really basic calculator service.
It uses GitHub actions to fire a CI build that run the tests and generate the package with the calculator
The package has been created following this tutorial
3.7
-
/.github/workflows This folder will contain the GitHub workflows template
-
/src This folder will contain the source code of the awesome calculator package 😄
This project uses unittest as the testing framework, and coverage.py for generating code coverage reports.
Inside the /src folder, just run this command:
python -m unittest -v
Inside the /src folder, just run this command:
coverage run -m unittest
and to report on the results:
coverage report