Skip to content

Commit

Permalink
Try and get coveralls working (#261)
Browse files Browse the repository at this point in the history
Try and get coveralls working

* Switched to using pytest-cov for coverage testing

* Added -numpy>=1.16.0 pip install back to test requirements otherwise get numpy.ufunc size changed error

* Removed coverage report to try and get coveralls updating
  • Loading branch information
aidanheerdegen committed May 14, 2020
1 parent 2691b5e commit 2a3e40a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ before_script:
script:
- payu list
- pylint --extension-pkg-whitelist=netCDF4 -E payu
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 || $TRAVIS_PYTHON_VERSION == 3.7 ]]; then PYTHONPATH=. coverage run --source payu -m py.test -s test; fi;
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 || $TRAVIS_PYTHON_VERSION == 3.7 ]]; then PYTHONPATH=. pytest --cov=payu -s test; fi;
- cd docs && make html
after_success:
- coverage report -m
- coveralls
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 || $TRAVIS_PYTHON_VERSION == 3.7 ]]; then coveralls; fi;
7 changes: 3 additions & 4 deletions test/requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
coverage == 3.7.1 ; python_version == '3.2'
coverage ; python_version != '3.2'
coverage
coveralls
pytest
pylint
mnctools
scipy
Sphinx
numpy>=1.16.0
pytest-cov
numpy>=1.16.0

0 comments on commit 2a3e40a

Please sign in to comment.