39 lines
728 B
YAML
39 lines
728 B
YAML
image: python:3-alpine
|
|
|
|
mypy:
|
|
stage: test
|
|
script:
|
|
- pip install mypy --quiet
|
|
- pip install . --quiet
|
|
- mypy syng --strict
|
|
|
|
pylint:
|
|
stage: test
|
|
script:
|
|
- pip install pylint --quiet
|
|
- pip install . --quiet
|
|
- 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
|