Merge branch 'testing_black' into 'master'
Adding a lint phase to the ci/cd pipeline. This should fail because animals.py... See merge request ldooks/dragon-bot!8
This commit is contained in:
commit
5e1f28b1ca
@ -9,8 +9,17 @@ variables:
|
|||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- test
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
|
||||||
|
lint_python_on_merge_request:
|
||||||
|
image: python:alpine
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- echo "Linting Python code"
|
||||||
|
- pip install --upgrade -q pip && pip install -q black && black --fast --check .
|
||||||
|
|
||||||
build_and_push_container:
|
build_and_push_container:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
|
0
app/animals.py
Executable file → Normal file
0
app/animals.py
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user