Commit e74daedb authored by Wout De Nolf's avatar Wout De Nolf
Browse files

style testing in CI

parent 3ebd7ec6
Pipeline #54693 passed with stages
in 44 seconds
stages:
- style
- test
flake8:
stage: style
image: "docker-registry.esrf.fr/dau/ewoks:python_3.7"
before_script:
- pip install flake8
script:
- flake8
black:
stage: style
image: "docker-registry.esrf.fr/dau/ewoks:python_3.7"
before_script:
- pip install black
script:
- LC_ALL=C.UTF-8 black --check --safe .
test:
stage: test
image: python:3.6
image: "docker-registry.esrf.fr/dau/ewoks:python_3.7"
before_script:
- pip install pytest-cov
- pip install .[test]
script:
- pytest --cov=./ .
only:
refs:
- main
- merge_requests
......@@ -25,3 +25,13 @@ mx =
pymongo
test =
pytest
mongita
black
# E501 (line too long) ignored for now
# E203 and W503 incompatible with black formatting (https://black.readthedocs.io/en/stable/compatible_configs.html#flake8)
[flake8]
ignore = E501, E203, W503
max-line-length = 88
exclude =
.eggs
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment