-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtest.yml
More file actions
44 lines (41 loc) · 1.18 KB
/
test.yml
File metadata and controls
44 lines (41 loc) · 1.18 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
# Test Docker image
typing:
stage: test
variables:
DOCKER_IMAGE_NAME: $CI_PROJECT_NAME-test
rules:
# We run the pipeline only on merge requests or the `main` branch
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
extends:
- .python-typing
lint:
stage: test
variables:
DOCKER_IMAGE_NAME: $CI_PROJECT_NAME-test
rules:
# We run the pipeline only on merge requests or the `main` branch
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
extends:
- .python-lint
format:
stage: test
variables:
DOCKER_IMAGE_NAME: $CI_PROJECT_NAME-test
rules:
# We run the pipeline only on merge requests or the `main` branch
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
extends:
- .python-format
tests:
stage: test
variables:
DOCKER_IMAGE_NAME: $CI_PROJECT_NAME-test
rules:
# We run the pipeline only on merge requests or the `main` branch
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
extends:
- .python-tests