Add example test script

This commit is contained in:
Alexander Engelsberger 2021-05-21 18:16:17 +02:00
parent 5b12629bd9
commit 419eca46af
2 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,7 @@ install:
- pip install .[all] --progress-bar off - pip install .[all] --progress-bar off
script: script:
- coverage run -m pytest - coverage run -m pytest
- ./tests/test_examples.sh examples/
after_success: after_success:
- bash <(curl -s https://codecov.io/bash) - bash <(curl -s https://codecov.io/bash)
deploy: deploy:

10
tests/test_examples.sh Executable file
View File

@ -0,0 +1,10 @@
#! /bin/bash
for example in $(find $1 -maxdepth 1 -name "*.py")
do
echo "test:" $example
export DISPLAY= && python $example --fast_dev_run 1
if [[ $? -ne 0 ]]; then
exit 1
fi
done