Add example test script
This commit is contained in:
parent
5b12629bd9
commit
419eca46af
@ -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
10
tests/test_examples.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user