diff --git a/.travis.yml b/.travis.yml index 4c2fc234..382a8896 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 coverage report -m; coveralls; fi; diff --git a/test/requirements_test.txt b/test/requirements_test.txt index 7265e198..7b88a3b9 100644 --- a/test/requirements_test.txt +++ b/test/requirements_test.txt @@ -1,9 +1,7 @@ -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