From 0a5bfe2d0efdc0d681cf494cad830edd9f9c4573 Mon Sep 17 00:00:00 2001 From: John Helmert Date: Wed, 12 Jun 2019 11:53:36 -0500 Subject: [PATCH] Add code coverage testing to gitlab-ci --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4db1104..4409849 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,13 +3,15 @@ python2.7: script: - pip install .[test] - pip install . - - python -m pytest tests/ + - coverage run -m py.test - pylint --rcfile .pylintrc -E tuir/ + - coverage report python3.6: image: python:3.6-stretch script: - pip install .[test] - pip install . - - python -m pytest tests/ + - coverage run -m py.test - pylint --rcfile .pylintrc -E tuir/ + - coverage report