-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitlab-ci.yml
132 lines (117 loc) · 2.65 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
stages:
- test
- pages
- lint
- deploy
variables:
TERM: ansi
# --- Stage Templates ----------------------------------------------------------
.test: &test
stage: test
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- build/
before_script:
- python -m pip install -U wheel coverage tqdm pyhmmer
script:
- python setup.py list_requirements -s
- python -m pip install -U -r requirements.txt
- python setup.py build_data --inplace bdist_wheel
- python -m pip install --find-links=dist --no-index gecco-tool[train]
- python -m coverage run -p -m unittest discover -vv
after_script:
- python -m coverage combine
- python -m coverage xml
- python -m coverage report
coverage: '/^TOTAL.+?(\d+\%)$/'
artifacts:
expire_in: 1 week
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
# --- Stages -------------------------------------------------------------------
# test:python3.6:
# image: python:3.6
# <<: *test
# test:python3.7:
# image: python:3.7
# <<: *test
# test:python3.8:
# image: python:3.8
# <<: *test
# test:python3.9:
# image: python:3.9
# <<: *test
# artifacts:
# expire_in: 1 week
# paths:
# - dist/*.whl
# - coverage.xml
# reports:
# coverage_report:
# coverage_format: cobertura
# path: coverage.xml
docs:
image: python:3.9
stage: pages
# dependencies:
# - test:python3.9
before_script:
- python setup.py list_requirements -s
- pip install -U -r docs/requirements.txt -r requirements.txt
script:
- sphinx-build -b html docs public
artifacts:
paths:
- public
# lint:pydocstyle:
# image: python:3.9
# stage: lint
# before_script:
# - pip install -U pydocstyle
# script:
# - pydocstyle gecco
# lint:mypy:
# image: python:3.9
# stage: lint
# allow_failure: true
# before_script:
# - pip install -U mypy
# script:
# - mypy gecco
# lint:pylint:
# image: python:3.9
# stage: lint
# allow_failure: true
# before_script:
# - pip install -U pylint
# script:
# - pylint gecco
# lint:radon:
# image: python:3.9
# stage: lint
# allow_failure: true
# before_script:
# - pip install -U radon
# script:
# - radon cc -a gecco
# deploy:codecov:
# image: python:3.9
# stage: deploy
# dependencies:
# - test:python3.9
# before_script:
# - pip install -U codecov
# script:
# - python -m codecov
# deploy:codacy:
# image: python:3.9
# stage: deploy
# dependencies:
# - test:python3.9
# before_script:
# - pip install -U codacy-coverage
# script:
# - python -m codacy -r coverage.xml