From fd3632fe26dabfc6d2339a619b28c337a3b19a13 Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Fri, 27 Mar 2020 13:12:21 -0400 Subject: [PATCH 1/2] add coveralls --- CHANGELOG.rst | 1 + HOWTOCONTRIBUTE.rst | 6 ++++++ ci/requirements-py36.yml | 1 + 3 files changed, 8 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f28292a8..bc055cd4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,7 @@ Internal Changes - Add community support documents: ``HOWTOCONTRIBUTE.rst``, issue template and pull request template. `Aaron Spring`_ - Replace pandas with cftime in examples and tests. `Aaron Spring`_ +- Add coveralls. `Aaron Spring`_ xskillscore v0.0.15 (2020-03-24) ================================ diff --git a/HOWTOCONTRIBUTE.rst b/HOWTOCONTRIBUTE.rst index 3ff9fe93..fcce18b4 100644 --- a/HOWTOCONTRIBUTE.rst +++ b/HOWTOCONTRIBUTE.rst @@ -114,6 +114,12 @@ Preparing Pull Requests $ pytest xskillscore + Check that your contribution is covered by tests and therefore increases the overall test coverage:: + + $ coverage run --source xskillscore -m py.test + $ coverage report + $ coveralls + Please stick to `xarray `_'s testing recommendations. #. Running the performance test suite diff --git a/ci/requirements-py36.yml b/ci/requirements-py36.yml index 919df3e5..d22195d6 100644 --- a/ci/requirements-py36.yml +++ b/ci/requirements-py36.yml @@ -17,3 +17,4 @@ dependencies: - pip: - properscoring - asv + - coveralls From c60262c4a6c9b2977473f1e8933a211a562fd9d1 Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Sat, 28 Mar 2020 13:36:36 -0400 Subject: [PATCH 2/2] update travis.yml --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f3aacff9..bfc18f0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: python sudo: false # use container based build notifications: - email: false + email: false python: - 3.6 @@ -18,11 +18,15 @@ before_install: install: - conda env create --file ci/requirements-py36.yml - - source activate xskillscore-dev + - source activate xskillscore-dev - conda list - pip install --no-deps -e . - python setup.py install script: - - py.test xskillscore + - coverage run --source xskillscore -m py.test + - coverage report - ./ci/run-linter.sh + +after_success: + - coveralls