Skip to content

Commit 500b4b2

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

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,15 @@ 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: openwisp/openwisp-utils/.github/actions/retry-command@selenium-chromedriver
76+
with:
77+
delay_seconds: 30
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: cd /opt/openwisp/docker-openwisp && make develop-pythontests && make stop
8284
env:
8385
SELENIUM_HEADLESS: 1
8486

0 commit comments

Comments
 (0)