mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-24 18:20:25 +01:00
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:
parent
1485a502ab
commit
b22343a05f
1 changed files with 13 additions and 3 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue