greenhouse/.gitlab-ci.yml
2022-05-20 11:36:21 +02:00

48 lines
801 B
YAML

stages:
- test
- build
test:
stage: test
image: python:3.8
script:
- python3.8 -m venv venv
- venv/bin/python -m pip install -r requirements-dev.txt
- venv/bin/python -m pip install -e .[dev]
- venv/bin/python -m pytest
- venv/bin/sphinx-build docs public
coverage: '/\d+\%\s*$/'
artifacts:
paths:
- public
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
junit: report.xml
build:
stage: build
image: python:3.8
script:
- python3.8 -m venv venv
- venv/bin/python -m pip install build
- venv/bin/python -m build .
artifacts:
paths:
- dist
pages:
stage: build
image: python:3.8
script:
- ls public
artifacts:
paths:
- public
only:
- master