Add .gitlab-ci.yml
This commit is contained in:
parent
6c37d49bbf
commit
c2fefc4362
|
@ -0,0 +1,32 @@
|
|||
stages:
|
||||
- test-lint-format
|
||||
|
||||
.job_setup:
|
||||
image: python:3.9
|
||||
before_script:
|
||||
- pip install -r requirements.txt
|
||||
|
||||
pylint:
|
||||
extends:
|
||||
- .job_setup
|
||||
stage: test-lint-format
|
||||
script:
|
||||
- pylint src/ test/
|
||||
|
||||
autopep8:
|
||||
extends:
|
||||
- .job_setup
|
||||
stage: test-lint-format
|
||||
script:
|
||||
- autopep8 --recursive --diff src/ test/
|
||||
|
||||
pytest:
|
||||
extends:
|
||||
- .job_setup
|
||||
stage: test-lint-format
|
||||
script:
|
||||
- pytest --cov=src/
|
||||
- coverage xml
|
||||
artifacts:
|
||||
reports:
|
||||
cobertura: coverage.xml
|
Loading…
Reference in New Issue