-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpull_request_automation.yml
108 lines (88 loc) · 2.43 KB
/
pull_request_automation.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: CI
on:
pull_request:
branches:
- master
- main
- develop
- dev
# 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: ./.github/workflows/_detect_changes.yml
with:
backend_directories: .github
frontend_directories: .github
ubuntu_version: latest
node:
needs: detect-changes
if: ${{ needs.detect-changes.outputs.frontend > 0 }}
uses: ./.github/workflows/_node.yml
with:
working_directory: .github/test/node_test
use_eslint: true
use_prettier: true
use_stylelint: true
run_codeql: true
custom_command: npm exec -c whoami
use_react: true
check_packages_licenses: true
use_jest: true
use_coverage: true
upload_coverage: true
max_timeout: 15
ubuntu_version: 22.04
node_versions: >-
["20"]
python:
needs: detect-changes
if: ${{ needs.detect-changes.outputs.backend > 0 }}
uses: ./.github/workflows/_python.yml
secrets: inherit
with:
working_directory: .github/test/python_test
use_black: false
use_isort: true
use_flake8: true
use_pylint: true
use_bandit: false
use_autoflake: true
run_codeql: true
requirements_path: .github/test/python_test/requirements.txt
packages_path: .github/test/python_test/packages.txt
django_settings_module: python_test.settings
check_migrations: true
check_requirements_licenses: true
check_docs_directory:
check_dockerfile: Dockerfile
use_postgres: false
postgres_db: db
postgres_user: user
postgres_password: password
postgres_version: latest
use_memcached: false
memcached_version: latest
use_elastic_search: false
elasticsearch_version: 8.11.1
elasticsearch_port: 9200
use_rabbitmq: true
rabbitmq_version: 3
use_mongo: false
mongo_version: latest
use_celery: true
celery_app: python_test.celery
celery_queues: default
use_coverage: true
upload_coverage: true
tags_for_slow_tests: main
tags_for_manual_tests: manual
custom_command: whoami ; ls -la
env: >-
{"KEY": "VALUE"}
python_versions: >-
["3.10"]
max_timeout: 15
ubuntu_version: 22.04