File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 5151 name : Test ${{ matrix.os }} GCC ${{ matrix.gcc }} CUDA ${{ matrix.cuda }}
5252 needs : build
5353 runs-on : self-hosted
54+ env :
55+ unit-test-file : test_fallback.txt
56+ regression-test-file : test_regression.txt
5457 strategy :
5558 fail-fast : false
5659 matrix :
@@ -64,16 +67,28 @@ jobs:
6467 working-directory : ${{ env.build_dir }}
6568 run : |
6669 chmod +x scripts/run_tests_fallback.sh
67- ./scripts/run_tests_fallback.sh | tee >(grep -qE "FAILED|ERROR" && echo "HAS_ERRORS=true" >> $GITHUB_ENV)
68- if [[ $HAS_ERRORS == "true" ]] ; then
70+ ./scripts/run_tests_fallback.sh | tee ${{ env.unit-test-file }}
71+ if cat ${{ env.unit-test-file }} | grep -q "FAILED" ; then
6972 exit 1
7073 fi
7174
75+ - name : Upload unit tests resutls
76+ uses : actions/upload-artifact@v4
77+ with :
78+ name : ${{ env.unit-test-file }}
79+ path : ${{ env.build_dir }}/${{ env.unit-test-file }}
80+
7281 - name : Run regression-tests
7382 working-directory : ${{ env.build_dir }}/python
7483 run : |
7584 chmod +x run_tests.sh
76- ./run_tests.sh | tee >(grep -qE "FAILED|ERROR" && echo "HAS_ERRORS=true" >> $GITHUB_ENV)
77- if [[ $HAS_ERRORS == "true" ]] ; then
85+ ./run_tests.sh | tee ${{ env.regression-test-file }}
86+ if cat ${{ env.regression-test-file }} | grep -q "FAILED" ; then
7887 exit 1
7988 fi
89+
90+ - name : Upload regression tests resutls
91+ uses : actions/upload-artifact@v4
92+ with :
93+ name : ${{ env.regression-test-file }}
94+ path : ${{ env.build_dir }}/python/${{ env.regression-test-file }}
You can’t perform that action at this time.
0 commit comments