-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
64 lines (48 loc) · 1.36 KB
/
.gitlab-ci.yml
File metadata and controls
64 lines (48 loc) · 1.36 KB
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
include:
- project: Public-tooling/cicd-templates
file: .gitlab-ci-oi-mr-pipelines.yaml
- project: Public-tooling/cicd-templates
file: .gitlab-ci-pythonpackage.yml
- component: git.otainsight.com/public-tooling/cicd-components/security-scanner-cicd-components/security-scanner@1
- project: Public-tooling/python-shared-config
file: tooling-ci.yml
ref: v0.2.4
default:
tags: ["k8s"]
variables:
PACKAGE_NAME: $PACKAGE_NAME
stages:
- analysis
- test
- deploy
Type checking:
extends: .python_enforced_type_checking
stage: test
image: $PYTHON_CODEQUALITY_IMAGE_BASE:$PYTHON_MAJOR_VERSION
before_script:
- pip install -r ./requirements-dev.txt
- !reference [.python_enforced_type_checking, before_script]
Ruff version check:
extends: .ruff_version_check
Ruff Linting + isort:
extends: .generic_ruff_check
needs:
- "Ruff version check"
Ruff Formatting:
extends: .generic_ruff_format
needs:
- "Ruff version check"
Code Quality:
extends: .generic_python_static_analysis
variables:
ISORT_CMD: "" # <- Disables isort
tests:
extends: .pythonpackage_run_pytest
Coverage:
extends: .generic_coverage_pages_python_feature_branch
Deploy:
extends: .pythonpackage_deploy_to_gemfury
Deploy Prerelease:
extends: .pythonpackage_deploy_prerelease_to_gemfury
pages:
extends: .generic_coverage_pages_python_master