-
Notifications
You must be signed in to change notification settings - Fork 6
96 lines (76 loc) · 2.16 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
name: 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: ./.github/workflows/_detect_changes.yml
with:
backend_directories: buffalogs .github build
frontend_directories: frontend .github
ubuntu_version: 22.04
# 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: >-
# ["18"]
python:
needs: detect-changes
if: ${{ needs.detect-changes.outputs.backend > 0 }}
uses: ./.github/workflows/_python.yml
secrets: inherit
with:
working_directory: buffalogs
use_black: true
use_isort: true
use_flake8: true
use_pylint: false
use_bandit: false
use_autoflake: false
run_codeql: false
requirements_path: buffalogs/requirements.txt
django_settings_module: buffalogs.settings.settings
check_migrations: true
check_requirements_licenses: false
use_postgres: true
postgres_version: 15.4
postgres_db: buffalogs
postgres_user: default_user
postgres_password: password
use_memcached: false
use_elastic_search: true
elasticsearch_version: 7.17.13
use_rabbitmq: false
use_mongo: false
use_celery: false
# celery_app: python_test.celery
# celery_queues: default
use_coverage: true
upload_coverage: false
# tags_for_slow_tests: main
# tags_for_manual_tests: manual
python_versions: >-
["3.10"]
max_timeout: 7
ubuntu_version: 22.04