Configured Gitlab CI for sphinx, mypy and pylint
This commit is contained in:
parent
6ade24bce2
commit
ce7b3fa8a5
3 changed files with 39 additions and 4 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
docs/build
|
||||||
|
__pycache__
|
||||||
|
.venv
|
||||||
|
.idea
|
|
@ -1,8 +1,39 @@
|
||||||
code_qualityt:
|
image: python:3-alpine
|
||||||
image: python:3
|
|
||||||
|
mypy:
|
||||||
|
stage: test
|
||||||
script:
|
script:
|
||||||
- pip install mypy --quiet
|
- pip install mypy --quiet
|
||||||
|
- pip install . --quiet
|
||||||
|
- mypy syng --strict
|
||||||
|
|
||||||
|
pylint:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
- pip install pylint --quiet
|
- pip install pylint --quiet
|
||||||
- pip install -e . --quiet
|
- pip install . --quiet
|
||||||
- mypy -p syng --strict
|
|
||||||
- pylint syng
|
- pylint syng
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- pip install -U sphinx
|
||||||
|
- pip install . --quiet
|
||||||
|
- sphinx-build -b html docs/source docs/build
|
||||||
|
only:
|
||||||
|
- branches
|
||||||
|
except:
|
||||||
|
- main
|
||||||
|
|
||||||
|
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- pip install -U sphinx
|
||||||
|
- pip install . --quiet
|
||||||
|
- sphinx-build -b html docs/source docs/build
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- docs/build
|
||||||
|
only:
|
||||||
|
- main
|
||||||
|
|
0
syng/__init__.py
Normal file
0
syng/__init__.py
Normal file
Loading…
Add table
Reference in a new issue