-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
45 lines (39 loc) · 908 Bytes
/
.gitlab-ci.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
# vim: expandtab:ts=8:sw=2:tw=80:fdm=marker:ft=yaml:
%YAML 1.1
---
include:
# Only run for branches and tags
# https://docs.gitlab.com/ee/ci/yaml/#workflowrules-templates
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
- project: ModioAB/CI
ref: main
file:
- /ci/default.yml
- /ci/container.yml
container:build:
extends: .container:build
before_script:
- pip3 install wheel
test:
stage: test
needs: []
script:
- pip3 install -r requirements-dev.txt
- pip3 install .
- pytest .
- mypy .
- flake8 .
coverage: '/^TOTAL.+?(\d+\%)$/'
artifacts:
reports:
junit:
- testreport.xml
- mypyreport.xml
container:publish:
extends: .container:publish
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
IMAGE_TAG_SUFFIX: latest
- !reference [.container:publish, rules]
...