Skip to content
Snippets Groups Projects
Commit 12b509d8 authored by Tsegelnik Nikita's avatar Tsegelnik Nikita
Browse files

adding CI script with tests

parent ba26aa91
No related branches found
No related tags found
No related merge requests found
stages:
- tests
tests:
image: git.jinr.ru:5005/gna/gna-base-docker-image:latest
stage: tests
script:
- python3 -m pip install -r dagflow/requirements.txt
- coverage run --source=. -m pytest
- coverage report
- coverage xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
paths:
- tests
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
only:
- master
- merge_requests
[pytest]
testpaths=tests
; uncomment below to include coverage into default pytest run
; addopts= --cov-report term --cov=./ --cov-report xml:cov.xml
File moved
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