-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
65 lines (59 loc) · 1.32 KB
/
.gitlab-ci.yml
File metadata and controls
65 lines (59 loc) · 1.32 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
65
stages:
- linting
- test
- coverage
- pages
variables:
MACSY_VERSION: ${CI_COMMIT_REF_NAME}
ruff:
stage: linting
image: python:3.13-slim-bookworm
script:
- python3 -m pip install .[dev]
- ruff check --output-format=gitlab integron_finder/ tests/
testing:
stage: test
image: python:3.13-slim-bookworm
script:
- apt-get update -y
- apt-get install -y --no-install-recommends infernal prodigal hmmer
- python3 -m pip install .[dev]
- python3 -m unittest discover -vv
except:
- /^feat.*$/
- /^fix.*$/
coverage:
stage: coverage
image: python:3.13-slim-bookworm
script:
- apt-get update -y
- apt-get install -y --no-install-recommends infernal prodigal hmmer
- python3 -m pip install .[dev]
- coverage run
- coverage html
- coverage report
artifacts:
paths:
- coverage_html/
except:
- /^feat.*$/
- /^fix.*$/
pages:
stage: pages
image: python:3.13-slim-bookworm
dependencies:
- coverage
script:
- apt-get update -y
- apt-get install -y --no-install-recommends make
- python3 -m pip install .[dev]
- cd ${CI_PROJECT_DIR}/doc/
- make html
- cd ${CI_PROJECT_DIR}
- mv ${CI_PROJECT_DIR}/doc/build/html/ public
- mv coverage_html public/coverage
artifacts:
paths:
- public
only:
- dev