Skip to content

ci: add email notification for failed Python unit tests#37

Open
AndreB-bot wants to merge 1 commit intoFullStackWithLawrence:mainfrom
AndreB-bot:main
Open

ci: add email notification for failed Python unit tests#37
AndreB-bot wants to merge 1 commit intoFullStackWithLawrence:mainfrom
AndreB-bot:main

Conversation

@AndreB-bot
Copy link
Copy Markdown

Summary

Adds email notification functionality to the pre-scaffolded notifications job in the Python Unit Tests workflow.

Changes

  • Modified .github/workflows/testsPython.yml to send an email via dawidd6/action-send-mail@v3 when unit tests fail
  • Added if: always() to ensure the notifications job runs even on upstream failure
  • Email includes repository, branch, commit, author, and a direct link to the workflow run
  • Logs a success message when tests pass

Secrets Required

Secret Description
EMAIL_USERNAME SMTP sender email address
EMAIL_PASSWORD SMTP app password
NOTIFICATION_EMAIL Recipient email address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant