This repository is created as an assignment from the Data Engineering course, IDS 706. The aim is to create a python project template that contains functioning placeholders for key python project best-practice elements.
The requirements are:
- .devcontainer to ensure consistency, portability, and isolation for projects' development environment.
- Makefile (with commands for setup, testing, and linting)
- Have a functioning CI/CD for setup, lint, test (with a badge on the readme)
- README.md with setup and usage instructions
- Housed in a public version control Source Code Management Repository (SCM) repository (GitHub, GitLab, BitBucket, Gitea, etc.)
It has two functions:
- get_the_capital_of_a_country to get the capital city of a country
get_the_capital_of_a_country(country: str) -> str
- add to add two numbers
add(a, a)
Tip
Just clone the repository to your local machine or codespace and enjoy.
The code was pushed to Github and Github Actions did the following main things:
- Setup the virtual environment according to the parameters in the workflow.yml
- Packages were installed, including those in the requirements.txt file
- All python files were formated by black
- Code linting was done
- Finally all the tests in the test_main.py were executed
Important
All the above steps had to be successful to get a completed CI/CD.