Skip to content

Commit

Permalink
Merge pull request xarray-contrib#98 from raybellwaves/add-coveralls
Browse files Browse the repository at this point in the history
add coveralls
  • Loading branch information
raybellwaves committed Mar 28, 2020
2 parents ba954e9 + c60262c commit 343964b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
language: python
sudo: false # use container based build
notifications:
email: false
email: false

python:
- 3.6
Expand All @@ -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
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
================================
Expand Down
6 changes: 6 additions & 0 deletions HOWTOCONTRIBUTE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <http://xarray.pydata.org/en/stable/contributing.html>`_'s testing recommendations.

#. Running the performance test suite
Expand Down
1 change: 1 addition & 0 deletions ci/requirements-py36.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ dependencies:
- pip:
- properscoring
- asv
- coveralls

0 comments on commit 343964b

Please sign in to comment.