-
Notifications
You must be signed in to change notification settings - Fork 1
CI‐CD Workflows
Tong Lam edited this page Apr 2, 2024
·
3 revisions
Reference: https://github.com/mgrum/flask-example-cicd/blob/main/.github/workflows/README.md
Our project will run two Github Action Workflows, one runs after a devolp branch is push to github (when you push your commit), the other runs after the dev branch merge into main.
Event: On push → any branch except main
Jobs:
- Build -> Pylint, Isort and Prettier
- Test -> Unittest
Event: On push → main
Jobs:
- Build -> Pylint, Isort and Prettier
- Test -> Unittest
- Deploy (Not set up yet)
The sensitive information is configured in project secrets, which can be accessed by GitHub Actions when the workflow runs.
So GitHub Actions can run the tests without needing the config.ini file to be included in the source code.
@ 2024