Update .gitlab-ci.yml file
This commit is contained in:
parent
b0834575ed
commit
81291cbf2b
1 changed files with 23 additions and 0 deletions
23
.gitlab-ci.yml
Normal file
23
.gitlab-ci.yml
Normal 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
|
Loading…
Add table
Reference in a new issue