2022-12-04 16:27:25 +01:00
|
|
|
image: python:3-alpine
|
|
|
|
|
|
|
|
mypy:
|
|
|
|
stage: test
|
2022-12-04 15:56:19 +01:00
|
|
|
script:
|
|
|
|
- pip install mypy --quiet
|
2022-12-04 16:27:25 +01:00
|
|
|
- pip install . --quiet
|
|
|
|
- mypy syng --strict
|
|
|
|
|
|
|
|
pylint:
|
|
|
|
stage: test
|
|
|
|
script:
|
2022-12-04 16:13:00 +01:00
|
|
|
- pip install pylint --quiet
|
2022-12-04 16:27:25 +01:00
|
|
|
- pip install . --quiet
|
2022-12-04 16:13:00 +01:00
|
|
|
- pylint syng
|
2022-12-04 16:27:25 +01:00
|
|
|
|
|
|
|
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
|