Start developing Python app right away without any hassle to install Github Apps or configure Github Action. Every pull request to the main branch will be analyzed by Codecov for checking test coverage, CodeQL for scanning vulnerabilities, and reviewed by DeepSource.
Follow the steps below to use this template
Install the required Github Apps from Marketplace (skip this part if it's already installed):
No need to install CodeQL as it's already integrated with Github
Click Use This Template on repository page
These steps are applied for configuring both Codecov and DeepSource
Since the apps may not work properly when you use this template, it may be because the apps don't have permission to access it. Here's how to configure it:
- Go to applications settings
- Click Configure button on the required app
- On "Repository Access" section, there are two options you can choose, if you check All repositories then skip this step. Otherwise, see the figure below:
If DeepSource is not triggered whenever you make a pull request, follow the steps below:
- Login to DeepSource dashboard
- Activate your repository by clicking + button like the figure below:
- Then, a list of repository will appear. Choose the one you want to use. The figure below is just an example
- Click I've added deepsource.toml, activate repo button since the .deepsource.toml file already exists in the repository
We're all set, create a pull request to test whether the apps working. The result should look like the figure below:
├── .deepsource.toml
├── .github
│ ├── codecov.yml
│ └── workflows
│ └── workflow.yml
├── LICENSE
├── README.md
├── logo.svg
├── requirements.txt
├── src
│ └── main.py
└── test
├── __init__.py
└── test_main.py
- .deepsource.toml: required file for DeepSource configuration
- .github: directory for github workflow configuration
- codecov.yml: Codecov file configuration
- workflow.yml: Github Workflow configuration
- LICENSE: repository license
- README.md: description about this repository
- logo.svg: logo used by this repository
- requirements.txt: list of required python package
- src: directory for project source code
- main.py: a simple python program
- test: directory for storing test files
- __init__.py: required file to treat this directory as module
- test_main.py: test file for main.py





