Split gitlab ci jobs
This commit is contained in:
parent
0fa8fd2558
commit
8ae2cf1f8d
4 changed files with 46 additions and 12 deletions
|
|
@ -1,12 +1,17 @@
|
|||
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
|
||||
stages:
|
||||
- test
|
||||
- release
|
||||
|
||||
variables:
|
||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||
|
||||
cache:
|
||||
key: "$CI_COMMIT_REF_SLUG"
|
||||
paths:
|
||||
- .venv/
|
||||
- .cache/pip
|
||||
- .cache/poetry
|
||||
|
||||
include:
|
||||
- local: '/gitlab-ci/test.yml'
|
||||
- local: '/gitlab-ci/release.yml'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue