Skip to content

Commit e91fb04

Browse files
committed
retry pytest on failure
1 parent a94aff7 commit e91fb04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pytest.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ jobs:
4646
cat <<< "$OAUTH_JSON" > tests/resources/oauth.json
4747
cat <<< "$TEST_CFG" > tests/resources/test.cfg
4848
- name: Run pytest
49-
run: |
50-
pdm run pytest
49+
uses: nick-fields/retry@v3
50+
with:
51+
command: pdm run pytest
52+
max_attempts: 2
5153
- name: Generate coverage report
5254
run: |
5355
pdm run coverage xml

0 commit comments

Comments
 (0)