Skip to content

Commit 8db7edb

Browse files
committed
Update github actions config to enable retry, and proper mail notification
1 parent 09bcc72 commit 8db7edb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/test.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,20 @@ jobs:
1717
cache: true
1818
- name: Install dependencies
1919
run: pdm install
20-
- name: Run tests
21-
run: pdm run test
20+
- name: Run tests with retry
21+
uses: nick-invision/retry@v3
22+
with:
23+
timeout_minutes: 10
24+
max_attempts: 3
25+
command: pdm run test
2226
- name: Send failure email
2327
if: failure()
2428
uses: dawidd6/action-send-mail@v3
2529
with:
2630
subject: Test Failure in ${{ github.repository }}
2731
body: The test for ${{ github.repository }} failed.
28-
32+
to: ${{ secrets.MAIL_USERNAME }}
2933
from: GitHub
3034
server_address: smtp.gmail.com
35+
server_user: ${{ secrets.MAIL_USERNAME }}
36+
server_password: ${{ secrets.MAIL_PASSWORD }}

0 commit comments

Comments
 (0)