File tree 3 files changed +19
-12
lines changed
3 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ function run_test() {
7
7
local erase_flash=$4
8
8
local sketchdir=$( dirname $sketch )
9
9
local sketchname=$( basename $sketchdir )
10
+ local result=0
10
11
11
12
if [[ -f " $sketchdir /.skip.$platform " ]] || [[ -f " $sketchdir /.skip.$target " ]] || [[ -f " $sketchdir /.skip.$platform .$target " ]]; then
12
13
echo " Skipping $sketchname test for $target , platform: $platform "
@@ -61,11 +62,18 @@ function run_test() {
61
62
extra_args=" --embedded-services esp,arduino"
62
63
fi
63
64
65
+ result=0
64
66
echo " pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args "
65
- bash -c " pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args "
67
+ bash -c " set +e; pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args ; exit \$ ? " || result= $?
66
68
result=$?
67
69
if [ $result -ne 0 ]; then
68
- return $result
70
+ result=0
71
+ echo " Retrying test: $sketchname -- Config: $i "
72
+ bash -c " set +e; pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args ; exit \$ ?" || result=$?
73
+ result=$?
74
+ if [ $result -ne 0 ]; then
75
+ exit $result
76
+ fi
69
77
fi
70
78
done
71
79
}
Original file line number Diff line number Diff line change 59
59
echo "test_folder=${test_folder}" >> $GITHUB_OUTPUT
60
60
echo "test_type=${test_type}" >> $GITHUB_OUTPUT
61
61
62
+ - name : Upload Event file
63
+ uses : actions/upload-artifact@v4
64
+ with :
65
+ name : event_file
66
+ path : ${{github.event_path}}
67
+
62
68
build :
63
69
needs : gen_chunks
64
70
name : ${{matrix.chip}}-Build#${{matrix.chunks}}
@@ -267,13 +273,3 @@ jobs:
267
273
path : |
268
274
tests/**/*.xml
269
275
tests/**/result_*.json
270
-
271
- event_file :
272
- name : " Event File"
273
- runs-on : ubuntu-latest
274
- steps :
275
- - name : Upload
276
- uses : actions/upload-artifact@v4
277
- with :
278
- name : event_file
279
- path : ${{github.event_path}}
Original file line number Diff line number Diff line change 95
95
- name : Install Wokwi CLI
96
96
run : curl -L https://wokwi.com/ci/install.sh | sh
97
97
98
+ - name : Wokwi CI Server
99
+ uses : wokwi/wokwi-ci-server-action@v1
100
+
98
101
- name : Install dependencies
99
102
run : |
100
103
pip install -U pip
You can’t perform that action at this time.
0 commit comments