From 88df443a1c16a960bca835a532514fb5ccdfca6c Mon Sep 17 00:00:00 2001 From: Adrienne Stilp Date: Tue, 24 Oct 2023 12:43:19 -0700 Subject: [PATCH] Try retrying the tox command after failure --- .github/workflows/ci.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71b2ce41..0ecbba86 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,7 +59,13 @@ jobs: sleep 10 - name: Test with tox - run: tox + uses: nick-fields/retry@v2 + id: retry-sqlite + with: + timeout_minutes: 10 + max_attempts: 3 + retry_on: error + command: tox env: DBBACKEND: sqlite3 DBNAME: ":memory:" @@ -111,9 +117,14 @@ jobs: run: sleep 10 - - name: Test with tox - not 10.3 - if: ${{ matrix.mariadb-version != '10.3' }} - run: tox + - name: Test with tox + uses: nick-fields/retry@v2 + id: retry-sqlite + with: + timeout_minutes: 10 + max_attempts: 3 + retry_on: error + command: tox env: DBBACKEND: mysql DBNAME: test