Add gitlab ci job

This commit is contained in:
sonny 2020-12-31 21:29:58 +01:00
parent 8c8c2d73a2
commit 1d130254c0
3 changed files with 76 additions and 1 deletions

12
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,12 @@
tests:
stage: test
coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+%)/'
image: python:3.7
before_script:
- pip install poetry --quiet
- poetry config cache-dir .cache/poetry
- poetry config virtualenvs.in-project true
- poetry install --no-interaction --quiet
script:
- poetry run coverage run --module unittest
- poetry run coverage report