-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.gitlab-ci.yml
39 lines (36 loc) · 954 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
image: python:3.10-bookworm
test:
script:
- apt-get update
- apt-get install --assume-yes wine
- pip install -r requirements.txt
- pip install coverage
- cd src
- coverage run --source=resipy test.py
- coverage report --include=resipy/Project.py,resipy/Survey.py,resipy/meshTools.py,resipy/DCA.py,resipy/protocols.py
- coverage html
coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+%)/'
artifacts:
paths:
- src/htmlcov
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
pages:
script:
- apt-get update
- apt-get install --assume-yes wine pandoc libxcb-xinerama0
- pip install -r requirements.txt
- pip install setuptools==59.6.0
- pip install sphinx numpydoc sphinx_rtd_theme nbsphinx sphinxcontrib-svg2pdfconverter sphinx-codeautolink
- pip install SALib
- ls
- cd doc
- ./build-doc.sh
- cd ..
- mv doc/_build/html/ public/
- ls public
artifacts:
paths:
- public
only:
- stable