-
Notifications
You must be signed in to change notification settings - Fork 17
/
.gitlab-ci.yml
59 lines (53 loc) · 1.13 KB
/
.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
stages:
- linting
- test
- coverage
- pages
variables:
MACSY_VERSION: ${CI_COMMIT_REF_NAME}
ruff:
stage: linting
image: registry-gitlab.pasteur.fr/gem/macsyfinder/run_dep
script:
- python3 -m pip install .[dev]
- ruff check --output-format=gitlab macsypy/ tests/
testing:
stage: test
image: registry-gitlab.pasteur.fr/gem/macsyfinder/run_dep
script:
- python3 -m pip install .[model]
- python3 -m unittest discover -vv
except:
- /^feat.*$/
- /^fix.*$/
coverage:
stage: coverage
image: registry-gitlab.pasteur.fr/gem/macsyfinder/coverage
script:
- python3 -m pip install .[model]
- coverage run
- coverage html
- coverage report
artifacts:
paths:
- htmlcov/
except:
- /^feat.*$/
- /^fix.*$/
pages:
stage: pages
image: registry-gitlab.pasteur.fr/gem/macsyfinder/pages
dependencies:
- coverage
script:
- python3 -m pip install .
- cd ${CI_PROJECT_DIR}/doc/
- make html
- cd ${CI_PROJECT_DIR}
- mv ${CI_PROJECT_DIR}/doc/build/html/ public
- mv htmlcov public/coverage
artifacts:
paths:
- public
only:
- dev