Skip to content

Commit 1670e10

Browse files
committed
build: run tests in workflow with an retry action
1 parent a848a93 commit 1670e10

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-test-package-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ jobs:
5252
run: pipx install hatch
5353

5454
- name: Test Python Packages
55-
timeout-minutes: 30
56-
run: hatch run test.${{ matrix.robot-version }}:test "--junitxml=test-results/os-${{ matrix.os }}-py-${{ matrix.python-version }}-${{ matrix.robot-version }}/test-results.xml"
55+
uses: nick-fields/retry@v3
56+
with:
57+
max_attempts: 3
58+
timeout_minutes: 30
59+
command: hatch run test.${{ matrix.robot-version }}:test "--junitxml=test-results/os-${{ matrix.os }}-py-${{ matrix.python-version }}-${{ matrix.robot-version }}/test-results.xml"
5760

5861
- name: Upload Test Results
5962
if: always()

0 commit comments

Comments
 (0)