From 430e37ea53ef084c0d27a9226d50e128987e977d Mon Sep 17 00:00:00 2001 From: vtexier <vit@free.fr> Date: Wed, 19 Jun 2019 19:09:46 +0200 Subject: [PATCH] [fix] #98 fix coverage test command line in gitlab-ci Add coverage report for a future nice badge in README --- .gitlab-ci.yml | 5 +++-- Makefile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 02902af8..5f7bcdb8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,9 +63,10 @@ test: <<: *changes stage: test script: - - pip install coveralls - pip install -r requirements.txt - - coverage run --source=duniterpy setup.py test + - coverage run -m unittest + - coverage report -m + coverage: '/TOTAL.+ ([0-9]{1,3}%)/' check: <<: *pyenv diff --git a/Makefile b/Makefile index 5de03c5a..0dbd793d 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ docs: # run tests tests: - python3 -m unittest ${TESTS_FILTER} + python3 -m ${TESTS_FILTER} # check check: mypy pylint check-format -- GitLab