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.
This commit is contained in:
Leroy Hopson 2022-08-24 09:41:22 +12:00
parent 1485a502ab
commit b22343a05f
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -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.