Skip to content

Commit

Permalink
added codecov as a code-coverage service
Browse files Browse the repository at this point in the history
  • Loading branch information
iovsn committed Jul 18, 2019
1 parent ce2c006 commit 0798083
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 5 deletions.
49 changes: 49 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[pytest]
addopts = --cov --cov-report=term
testpaths = core
coregistration
features
geometry
io
mask
ml_tools
visualization

[run]
source = core
coregistration
features
geometry
io
mask
ml_tools
visualization

[report]
omit = core/eolearn/tests/*
coregistration/eolearn/tests/*
geometry/eolearn/tests/*
mask/eolearn/tests/*
ml_tools/eolearn/tests/*
visualization/eolearn/tests/*

core/setup.py
coregistration/setup.py
geometry/setup.py
mask/setup.py
ml_tools/setup.py
visualization/setup.py

core/eolearn/__init__.py
coregistration/eolearn/__init__.py
geometry/eolearn/__init__.py
mask/eolearn/__init__.py
ml_tools/eolearn/__init__.py
visualization/eolearn/__init__.py

core/eolearn/core/__init__.py
coregistration/eolearn/coregistration/__init__.py
geometry/eolearn/geometry/__init__.py
mask/eolearn/mask/__init__.py
ml_tools/eolearn/ml_tools/__init__.py
visualization/eolearn/visualization/__init__.py
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ before_install:

install:
- pip install -r requirements-dev.txt --upgrade
- python install_all.py
- python install_all.py -e
- pip install pandas==0.23.4 # This is temporal solution

script:
Expand All @@ -42,6 +42,9 @@ script:
- radon cc mask/eolearn/mask/*.py -a -nb
- radon cc ml_tools/eolearn/ml_tools/*.py -a -nb
- radon cc visualization/eolearn/visualization/*.py -a -nb
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then pytest --ignore io/eolearn/tests; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then pytest ; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then pytest -c=.coveragerc --ignore io/eolearn/tests; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then pytest -c=.coveragerc; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then pytest --nbval-lax examples/visualization/EOPatchVisualization.ipynb ; fi'

after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then codecov; fi
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![License](https://img.shields.io/pypi/l/eo-learn.svg)](https://github.com/sentinel-hub/eo-learn/blob/master/LICENSE)
[![Overall downloads](http://pepy.tech/badge/eo-learn)](https://pepy.tech/project/eo-learn)
[![Last month downloads](https://pepy.tech/badge/eo-learn/month)](https://pepy.tech/project/eo-learn)
[![codecov](https://codecov.io/gh/sentinel-hub/eo-learn/branch/master/graph/badge.svg)](https://codecov.io/gh/sentinel-hub/eo-learn)
<img align="right" src="docs/source/figures/eo-learn-logo.png" alt="" width="300"/>


Expand Down Expand Up @@ -96,7 +97,7 @@ If you would like to contribute to `eo-learn`, check out our [contribution guide
* [Land Cover Classification with eo-learn: Part 3 - Pushing Beyond the Point of “Good Enough”](https://medium.com/sentinel-hub/land-cover-classification-with-eo-learn-part-3-c62ed9ecd405) (by Matic Lubej)
* [Innovations in satellite measurements for development](https://blogs.worldbank.org/opendata/innovations-satellite-measurements-development)
* [Use eo-learn with AWS SageMaker](https://medium.com/@drewbo19/use-eo-learn-with-aws-sagemaker-9420856aafb5) (by Drew Bollinger)
* [Spatio-Temporal Deep Learning: An Application to Land Cover Classification](https://www.researchgate.net/publication/333262625_Spatio-Temporal_Deep_Learning_An_Application_to_Land_Cover_Classification)(by Anze Zupanc)
* [Spatio-Temporal Deep Learning: An Application to Land Cover Classification](https://www.researchgate.net/publication/333262625_Spatio-Temporal_Deep_Learning_An_Application_to_Land_Cover_Classification)(by Anze Zupanc)

## Questions and Issues

Expand All @@ -109,6 +110,6 @@ You are welcome to send your feedback to the package authors, EO Research team,

See [LICENSE](https://github.com/sentinel-hub/eo-learn/blob/master/LICENSE).

## Acknowledgements
## Acknowledgements

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 776115.
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pytest>=4.0.0
pytest-cov
codecov
pylint
radon
hypothesis
Expand Down

0 comments on commit 0798083

Please sign in to comment.