Update .gitlab-ci.yml file

This commit is contained in:
Chris Berkhout 2021-07-29 11:00:29 +00:00
parent b0834575ed
commit 81291cbf2b

23
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,23 @@
image: python:latest
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry"
cache:
paths:
- .cache/pip
- .cache/poetry
before_script:
- python -V
- pip install poetry
- poetry install
test:
script:
- poetry run isort --check
- poetry run black --check
- poetry run pytest
- poetry run coverage run --source=pricehist -m pytest
- poetry run coverage report