-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.woodpecker.yml
62 lines (56 loc) · 1.63 KB
/
.woodpecker.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
clone:
git:
image: woodpeckerci/plugin-git
settings:
tags: true
pipeline:
check-code-complexity:
image: dessia/python-ci:3.9
commands:
- git fetch --tags
- pip install Cython>3
- pip install numpy
- python setup.py build_ext --inplace
- python setup.py install
- pip install pylint==2.17.3 pydocstyle==6.3.0 pre-commit shellcheck-py cython-lint pyenchant==3.2.2
- python code_pylint.py
- python code_pydocstyle.py
- pre-commit run -a
check-pep8-formatting:
image: python:3.9
commands:
- git fetch --tags
- pip3 install -U pip autopep8==2.0.0
- bash code_pep8.sh
check-changelog-update:
image: python:3.9
when:
event: pull_request
commands:
- bash code_changelog.sh
install-doc-coverage:
image: python:3.9
commands:
- pip install .[doc,test]
- python setup.py build_ext --inplace
- python setup.py install
- cd doc
- make html
- cd ../tests
- coverage run --rcfile=../.coveragerc --data-file=../.coverage --source volmdlr -m unittest discover -v
- cd ../scripts
- coverage run --rcfile=../.coveragerc --data-file=../.coverage --source volmdlr -a ci_scripts.py
- cd ../tutorials
- coverage run --rcfile=../.coveragerc --data-file=../.coverage --source volmdlr -a ci_tutorials.py
- cd ..
- coverage json
- coverage report
- coverage html
- python coverage.py
generate-sdist:
image: python:3.9
commands:
- git fetch --tags
- pip install Cython>3
- pip install numpy
- python setup.py sdist