This is a python project scaffold for deploying CI/CD using Github Actions
The project can be created and deployed to cloud following these steps:
- Create a Github Repo, open Cloud Shell
- Create ssh-keys in Cloud Shell, upload ssh-keys to Github
ssh-keygen -t rsa
- Create a python virtual environment and source it
or
python3 -m venv ~/.myrepo source ~/.myrepo/bin/activate
virtualenv --python $(which python) ~/.myrepo source ~/.myrepo/bin/activate
- Create related files for the project, including Makefile, requirements.txt, source code and test code
- Run make all, which will install, lint, and test code
- Setup Github Actions in .yml
- Commit changes and push to Github, run project in Cloud Shell
- Verify Github Actions Test Software, add status badge