Skip to content
Snippets Groups Projects
Commit 79631153 authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

CI: run tests independently of source checks

parent 4a72d942
No related branches found
No related tags found
1 merge request!81Add data tools
Pipeline #120701 passed with stages
in 2 minutes and 33 seconds
image: python
stages:
- test
- build
- deploy
check:
stage: build
stage: test
before_script:
- pip3 install black pandas 'pylint<3' 'isort[colors]<6'
- pip3 install black 'pylint<3' 'isort[colors]<6'
script:
- pip3 install --editable .[test]
- pip3 install --editable .
- black --check --diff --color .
- isort --check --diff --color .
- pylint src/finam
test:
stage: test
script:
- pip3 install --editable .[test]
- python -m pytest --cov finam --cov-report term-missing --cov-report xml:cov.xml -v tests/
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
coverage_report:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment