- Clone this repo to your local (DO NOT FORK THIS REPO, IF YOU DO YOU HAVE TO ENABLE ACTIONS BEFORE ANYTHING RUNS)
- Create a new repo on your own account
- Remove the origin remote and replace it with your own new repo. (Do not add a readme or anything it should be empty)
- Create an account with Heroku, create an app, create a heroku API key (see notes)
- Create a new repo in Docker hub
- Add repository settings for action secrets for DOCKER_USERNAME, DOCKER_PASSWORD, HEROKU_API_KEY (put the appropriate values in)
-
Change line 45 to have your docker repo address in: .github/workflows/test-build-deploy.yml
-
change lines 61 to have your heroku app name in: .github/workflows/test-build-deploy.yml
-
change line 62 to have your heroku email in: .github/workflows/test-build-deploy.yml
-
change line 19 of readme.md (this file) to have the link to your heroku app (click on the app and then there is a button to open the app in the upper right) This will not work until it successfully deploys
-
Push your local repo and fix any errors that appear when the workflow is running. You can check the workflow in the actions tab
Heroku Notes: Get the heroku API key from account in: -> applications -> create authorization button
- To Build with docker compose: docker compose up --build
- To run tests, Lint, and Coverage report use this command: pytest --pyl:int --cov
.pylintrc is the config for pylint .coveragerc is the config for coverage setup.py is a config file for pytest