Skip to content
Snippets Groups Projects
Verified Commit 630ab896 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

CI job Performance improvements

parent afb9a71f
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ variables:
IMAGE: $IMAGE_NAME:$CI_COMMIT_REF_NAME
IMAGE_LATEST: $IMAGE_NAME:latest
PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache"
PYTHONDONTWRITEBYTECODE: "true"
stages:
......@@ -14,11 +15,17 @@ stages:
black:
image: python:3.6
stage: lint
variables:
GIT_STRATEGY: fetch
before_script:
- pip install black
script:
- black --check api/
cache:
key: "$CI_PROJECT_ID__black_pip_cache"
paths:
- "$PIP_CACHE_DIR"
test_api:
services:
......
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