Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/testsPython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,20 @@ jobs:
# on the test results.
notifications:
needs: python-unit-tests
if: always() #Added this line so that notification on failure will not be skipped by github actions
runs-on: ubuntu-latest
steps:
- name: Notify on test results
run: |
if [ "${{ needs.python-unit-tests.result }}" == "success" ]; then
echo "success notifications go here"
echo "Python unit tests passed for ${{ github.repository }}."
echo "Branch: ${{ github.ref_name }}"
echo "Commit: ${{ github.sha }}"
echo "Workflow run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
else
echo "failure notifications go here"
echo "Python unit tests failed for ${{ github.repository }}."
echo "Branch: ${{ github.ref_name }}"
echo "Commit: ${{ github.sha }}"
echo "Workflow run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
echo "Please check the GitHub Actions logs for more details"
fi