 image: python:3.8-buster

 before_script:
   - pip install -r requirements.txt

 test:
   stage: test
   script:
   - mkdocs build --verbose --site-dir test
   artifacts:
     paths:
     - test
   except:
   - master

 pages:
   stage: deploy
   script:
   - mkdocs build --verbose
   artifacts:
     paths:
     - public
   only:
   - master
