Skip to content

Commit a4d250f

Browse files
committed
[TEST] ci: twister: Run "weekly" on push
1 parent d69ce9d commit a4d250f

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

.github/workflows/twister.yaml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,22 @@ jobs:
100100
- name: Determine matrix size
101101
id: output-services
102102
run: |
103-
if [ "${{github.event_name}}" = "push" ]; then
104-
subset="[$(seq -s',' 1 ${PUSH_MATRIX_SIZE})]"
105-
size=${MATRIX_SIZE}
106-
elif [ "${{github.event_name}}" = "pull_request" ]; then
103+
# if [ "${{github.event_name}}" = "push" ]; then
104+
# subset="[$(seq -s',' 1 ${PUSH_MATRIX_SIZE})]"
105+
# size=${MATRIX_SIZE}
106+
if [ "${{github.event_name}}" = "pull_request" ]; then
107107
if [ -n "${TWISTER_NODES}" ]; then
108108
subset="[$(seq -s',' 1 ${TWISTER_NODES})]"
109109
else
110110
subset="[$(seq -s',' 1 ${MATRIX_SIZE})]"
111111
fi
112112
size=${TWISTER_NODES}
113-
elif [ "${{github.event_name}}" = "schedule" -a "${{github.repository}}" = "zephyrproject-rtos/zephyr" ]; then
113+
# elif [ "${{github.event_name}}" = "schedule" -a "${{github.repository}}" = "zephyrproject-rtos/zephyr" ]; then
114+
else
114115
subset="[$(seq -s',' 1 ${WEEKLY_MATRIX_SIZE})]"
115116
size=${WEEKLY_MATRIX_SIZE}
116-
else
117-
size=0
117+
# else
118+
# size=0
118119
fi
119120
120121
echo "subset=${subset}" >> $GITHUB_OUTPUT
@@ -227,19 +228,19 @@ jobs:
227228
west update
228229
make everything -s -j 8
229230
230-
- if: github.event_name == 'push'
231-
name: Run Tests with Twister (Push)
232-
id: run_twister
233-
run: |
234-
export ZEPHYR_BASE=${PWD}
235-
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
236-
./scripts/twister --subset ${{matrix.subset}}/${{ strategy.job-total }} ${TWISTER_COMMON} ${PUSH_OPTIONS}
237-
if [ "${{matrix.subset}}" = "1" ]; then
238-
./scripts/zephyr_module.py --twister-out module_tests.args
239-
if [ -s module_tests.args ]; then
240-
./scripts/twister +module_tests.args --outdir module_tests ${TWISTER_COMMON} ${PUSH_OPTIONS}
241-
fi
242-
fi
231+
# - if: github.event_name == 'push'
232+
# name: Run Tests with Twister (Push)
233+
# id: run_twister
234+
# run: |
235+
# export ZEPHYR_BASE=${PWD}
236+
# export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
237+
# ./scripts/twister --subset ${{matrix.subset}}/${{ strategy.job-total }} ${TWISTER_COMMON} ${PUSH_OPTIONS}
238+
# if [ "${{matrix.subset}}" = "1" ]; then
239+
# ./scripts/zephyr_module.py --twister-out module_tests.args
240+
# if [ -s module_tests.args ]; then
241+
# ./scripts/twister +module_tests.args --outdir module_tests ${TWISTER_COMMON} ${PUSH_OPTIONS}
242+
# fi
243+
# fi
243244

244245
- if: github.event_name == 'pull_request'
245246
name: Run Tests with Twister (Pull Request)
@@ -257,7 +258,7 @@ jobs:
257258
fi
258259
fi
259260
260-
- if: github.event_name == 'schedule'
261+
- if: github.event_name == 'push'
261262
name: Run Tests with Twister (Weekly)
262263
id: run_twister_sched
263264
run: |

0 commit comments

Comments
 (0)