-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (39 loc) · 1.1 KB
/
pull_request_certego.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Certego Django CI
on:
pull_request:
branches:
- main
- develop
# discard previous execution if you commit to a branch that is already running
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
detect-changes:
uses: certego/.github/.github/workflows/[email protected]
with:
backend_directories: certego_saas tests example_project
python_tests:
if: ${{ needs.detect-changes.outputs.backend > 0 }}
needs: detect-changes
uses: certego/.github/.github/workflows/[email protected]
with:
working_directory: .
use_black: true
use_isort: true
use_flake8: true
use_pylint: false
use_bandit: false
requirements_path: requirements/requirements.txt
django_settings_module: example_project.settings
check_migrations: true
check_requirements_licenses: false
use_coverage: true
upload_coverage: true
python_versions: >-
[ "3.8", "3.9", "3.10"]
env: >-
{
"DEBUG":"True",
}
secrets: inherit