Skip to content

feat: added notification if tests returns with status failure#34

Open
jeff-1234-glitch wants to merge 1 commit intoFullStackWithLawrence:mainfrom
jeff-1234-glitch:feature/failure-notification
Open

feat: added notification if tests returns with status failure#34
jeff-1234-glitch wants to merge 1 commit intoFullStackWithLawrence:mainfrom
jeff-1234-glitch:feature/failure-notification

Conversation

@jeff-1234-glitch
Copy link
Copy Markdown

Pull Request Template

Type of Change

  • New feature
  • Bug fix
  • Documentation
  • Refactor
  • Chore

Changes

  • Updated the testsPython.yml workflow to replace placeholder echo statements with a live notification system.

  • Implemented dawidd6/action-send-mail@v3 to handle failure alerts.

  • Configured the workflow to send a critical alert via Gmail SMTP when Python unit tests fail.

  • Added dynamic body content including the branch name and the user who triggered the run.

  • Updated the "Success" path to provide a clearer pass message.

Testing

  • Manually triggered the workflow with a failing test case to verify the email was sent.

  • Verified that the "Success" message triggers correctly when tests pass.

  • Note: Requires EMAIL_USERNAME, EMAIL_PASSWORD, and EMAILS_TO_NOTIFY to be set in the repository secrets for the email action to succeed.

Dependencies

  • dawidd6/action-send-mail@v3 (GitHub Action)

Breaking Changes

  • Repository Secrets Required: EMAIL_USERNAME, EMAIL_PASSWORD, and EMAIL_TO_NOTIFY

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.

2 participants