File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 4646 - name : Build library sources
4747 working-directory : ${{ env.build_dir }}
4848 run : cmake --build . --target all --verbose -j `nproc`
49-
49+
5050 test :
5151 name : Test ${{ matrix.os }} GCC ${{ matrix.gcc }} CUDA ${{ matrix.cuda }}
5252 needs : build
@@ -62,12 +62,18 @@ jobs:
6262 steps :
6363 - name : Run unit-tests
6464 working-directory : ${{ env.build_dir }}
65- run : chmod +x scripts/run_tests_fallback.sh && ./scripts/run_tests_fallback.sh
65+ run : |
66+ output=$(chmod +x scripts/run_tests_fallback.sh && ./scripts/run_tests_fallback.sh)
67+ echo $output
68+ if echo "$output" | grep -qE "FAILED|ERROR"; then
69+ exit 1
70+ fi
6671
6772 - name : Run regression-tests
6873 working-directory : ${{ env.build_dir }}/python
6974 run : |
70- echo "PYTHONPATH=`pwd`:$PYTHONPATH" >> $GITHUB_ENV
71- cd tests
72- python3 -m unittest discover -v
73- # chmod +x run_tests.sh && ./run_tests.sh
75+ output=$(chmod +x run_tests.sh && ./run_tests.sh)
76+ echo $output
77+ if echo "$output" | grep -qE "FAILED|ERROR"; then
78+ exit 1
79+ fi
You can’t perform that action at this time.
0 commit comments