Skip to content

Commit e2acfac

Browse files
committed
Improve examples testing
1 parent 9aa462a commit e2acfac

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/smoketests.yml renamed to .github/workflows/examples.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- '**'
1010

1111
jobs:
12-
lint:
12+
examples:
1313
runs-on: ubuntu-latest
1414

1515
steps:

examples/test_examples.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/usr/bin/env bash
2-
set -eo pipefail
3-
42
EXAMPLES_DIR=$(dirname "${BASH_SOURCE[0]}")
53

64
for example in ${EXAMPLES_DIR}/pipeline_*.py; do
75
echo "Running example: ${example}"
8-
python ${example} 2>/dev/null
6+
time python ${example} > test_examples.log 2>&1
7+
if [ $? -ne 0 ]; then
8+
echo "Error running example: ${example}"
9+
cat test_examples.log
10+
exit 1
11+
fi
912
done

0 commit comments

Comments
 (0)