Skip to content

Add failure notification to Python Unit Tests workflow#39

Open
melikazamani-01 wants to merge 1 commit intoFullStackWithLawrence:mainfrom
melikazamani-01:main
Open

Add failure notification to Python Unit Tests workflow#39
melikazamani-01 wants to merge 1 commit intoFullStackWithLawrence:mainfrom
melikazamani-01:main

Conversation

@melikazamani-01
Copy link
Copy Markdown

Type of Change

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

Changes

This PR adds a failure notification to the Python Unit Tests GitHub Actions workflow.

A notifications job was implemented to run after the python-unit-tests job using needs, with if: ${{ always() }} to ensure execution regardless of outcome. A conditional check on needs.python-unit-tests.result triggers a notification when tests do not succeed.

The notification writes a structured message to the workflow summary including repository, branch, commit, and workflow run details.

Testing

  • Triggered workflow manually using workflow_dispatch
  • Verified notification job runs after test execution
  • Confirmed notification appears in workflow summary when tests fail

Breaking Changes

None

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