From b22343a05f3fac1b860e8d193f859f18b7b8f90e Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Wed, 24 Aug 2022 09:41:22 +1200 Subject: [PATCH] Retry tests Tests sometimes fail on Ubuntu due to a race condition with the pulse audio process and on macOS due to timing issues. These tests usually pass on subsequent runs, so use the retry action to retry them in a single run. --- .github/workflows/main.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19f122e..6d55eeb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -259,11 +259,21 @@ jobs: name: libgodot-xterm-release path: addons/godot_xterm/native/bin - name: Run tests - shell: bash - run: godot --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.ci.json + uses: nick-fields/retry@v2 + with: + shell: bash + command: godot --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.ci.json + retry_on: error + timeout_minutes: 5 + max_attempts: 3 - name: Run unix tests if: ${{ matrix.os != 'windows-latest' }} - run: godot --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.unix.json + uses: nick-fields/retry@v2 + with: + command: godot --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.unix.json + retry_on: error + timeout_minutes: 5 + max_attempts: 3 # Git archive should only include addons/godot_xterm directory.