We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdb49d8 commit b18b71bCopy full SHA for b18b71b
1 file changed
.github/workflows/ci.yaml
@@ -299,8 +299,24 @@ jobs:
299
300
- name: Run flaky MP CPython tests
301
run: |
302
- target/release/rustpython -m test -j 1 ${{ join(matrix.extra_test_args, ' ') }} --slowest --fail-env-changed --timeout 600 -v ${{ env.FLAKY_MP_TESTS }}
+ for attempt in $(seq 1 5); do
303
+ echo "::group::Attempt ${attempt}"
304
+
305
+ set +e
306
+ target/release/rustpython -m test -j 1 ${{ join(matrix.extra_test_args, ' ') }} --slowest --fail-env-changed --timeout 600 -v ${{ env.FLAKY_MP_TESTS }}
307
+ status=$?
308
+ set -e
309
310
+ echo "::endgroup::"
311
312
+ if [ $status -eq 0 ]; then
313
+ exit 0
314
+ fi
315
+ done
316
317
+ exit 1
318
timeout-minutes: ${{ matrix.timeout }}
319
+ shell: bash
320
env:
321
RUSTPYTHON_SKIP_ENV_POLLUTERS: true
322
0 commit comments