mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 11:04:20 +00:00
CI: introduce black
This commit is contained in:
parent
d1d1ba4aff
commit
88d6f8dc8a
@ -1,8 +1,17 @@
|
|||||||
test:
|
stages:
|
||||||
|
- setup
|
||||||
|
- test
|
||||||
|
|
||||||
|
setup:
|
||||||
|
stage: setup
|
||||||
script:
|
script:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y gettext
|
- apt-get install -y gettext
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
- pip install coverage
|
- pip install coverage
|
||||||
- ./manage.py compilemessages
|
- ./manage.py compilemessages
|
||||||
- coverage run ./manage.py test
|
- coverage run ./manage.py test
|
||||||
@ -11,3 +20,9 @@ test:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- coverage_report/
|
- coverage_report/
|
||||||
|
|
||||||
|
black:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- pip install black
|
||||||
|
- black --check .
|
||||||
|
Loading…
Reference in New Issue
Block a user