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
Branches
Tags
No related merge requests found
...@@ -3,6 +3,7 @@ variables: ...@@ -3,6 +3,7 @@ variables:
IMAGE: $IMAGE_NAME:$CI_COMMIT_REF_NAME IMAGE: $IMAGE_NAME:$CI_COMMIT_REF_NAME
IMAGE_LATEST: $IMAGE_NAME:latest IMAGE_LATEST: $IMAGE_NAME:latest
PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache" PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache"
PYTHONDONTWRITEBYTECODE: "true"
stages: stages:
...@@ -14,11 +15,17 @@ stages: ...@@ -14,11 +15,17 @@ stages:
black: black:
image: python:3.6 image: python:3.6
stage: lint stage: lint
variables:
GIT_STRATEGY: fetch
before_script: before_script:
- pip install black - pip install black
script: script:
- black --check api/ - black --check api/
cache:
key: "$CI_PROJECT_ID__black_pip_cache"
paths:
- "$PIP_CACHE_DIR"
test_api: test_api:
services: services:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment