improved pytest execution in CI yml
@@ -29,7 +29,7 @@ script:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
sentinelhub.config --instance_id $INSTANCE_ID &&
sentinelhub.config --sh_client_secret $SH_CLIENT_SECRET &&
- sentinelhub.config --sh_client_id $SH_CLIENT_ID
+ sentinelhub.config --sh_client_id $SH_CLIENT_ID ;
fi
- if [ $TRAVIS_PYTHON_VERSION == '3.6' ]; then
pylint core/eolearn/core/*.py &&
@@ -49,13 +49,16 @@ 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
if [ $TRAVIS_PYTHON_VERSION == '3.6' ]; then
pytest -c=.coveragerc;
else
pytest;
fi
+ else
+ pytest \
+ --ignore io/eolearn/tests/test_io.py \
+ --ignore io/eolearn/tests/test_processing_io.py ;
fi
# - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then pytest --nbval-lax examples/visualization/EOPatchVisualization.ipynb ; fi'
