.gitlab-ci.yml
raw| 1 | image: python:3.9 |
| 2 | |
| 3 | variables: |
| 4 | PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" |
| 5 | |
| 6 | cache: |
| 7 | paths: |
| 8 | - .cache/pip |
| 9 | - venv |
| 10 | - .tox |
| 11 | |
| 12 | before_script: |
| 13 | - python3 --version |
| 14 | - python3 -m pip install tox |
| 15 | |
| 16 | test: |
| 17 | stage: test |
| 18 | script: |
| 19 | - tox |
| 20 | |
| 21 | docs: |
| 22 | stage: test |
| 23 | script: |
| 24 | - tox -e docs |
| 25 | |
| 26 | pages: |
| 27 | only: |
| 28 | - master |
| 29 | stage: deploy |
| 30 | script: |
| 31 | - tox -e docs |
| 32 | artifacts: |
| 33 | paths: |
| 34 | - public |