Skip to content
Snippets Groups Projects
Unverified Commit 2576afc0 authored by karp's avatar karp
Browse files

Update pipeline to check types and formatting

parent 533884ec
No related branches found
No related tags found
1 merge request!24Update pipeline to check types and formatting
Pipeline #6684 failed
......@@ -3,6 +3,26 @@
# * Author: (c) 2011-present GitLab B.V.
# * URL: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html#building-a-docker-image-with-kaniko
# * License: CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0)
stages:
- test
- build
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
testing:
image: python:latest
cache:
paths:
- .cache/pip
stage: test
before_script:
- pip install pipenv
- pipenv requirements --dev > requirements.txt
- pip install -r requirements.txt
script:
- black --check $CI_PROJECT_DIR
- mypy .
docker-build:
image:
......@@ -17,3 +37,4 @@ docker-build:
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
only:
- master
needs: [testing]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment