Skip to content

Commit 9691d88

Browse files
committed
[ci] Retry running test suite on failure
1 parent 30c95af commit 9691d88

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,16 @@ jobs:
7272
7373
- name: Test
7474
if: ${{ !cancelled() && steps.auto_install_upgrade.conclusion == 'success' }}
75-
# The auto-install script installs docker-openwisp by default in
76-
# /opt/openwisp/docker-openwisp. To ensure the test runs correctly
77-
# and environment variables remain intact, it is essential to
78-
# execute the test from this directory.
79-
run: |
80-
(make develop-pythontests && make stop)
81-
working-directory: /opt/openwisp/docker-openwisp
75+
uses: nick-fields/retry@v3.0.2
76+
with:
77+
timeout_minutes: 20
78+
max_attempts: 5
79+
# The auto-install script installs docker-openwisp by default in
80+
# /opt/openwisp/docker-openwisp. To ensure the test runs correctly
81+
# and environment variables remain intact, it is essential to
82+
# execute the test from this directory.
83+
command: make develop-pythontests && make stop
84+
working_directory: /opt/openwisp/docker-openwisp
8285
env:
8386
SELENIUM_HEADLESS: 1
8487

0 commit comments

Comments
 (0)