Configured Gitlab CI for sphinx, mypy and pylint

This commit is contained in:
Christoph Stahl 2022-12-04 16:27:25 +01:00
parent 6ade24bce2
commit ce7b3fa8a5
3 changed files with 39 additions and 4 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
docs/build
__pycache__
.venv
.idea

View file

@ -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
View file