From f1a1fb3255905937b0786d60b5a8698c1c2a2301 Mon Sep 17 00:00:00 2001 From: jingled18 Date: Sun, 3 May 2026 00:18:58 +0800 Subject: [PATCH 1/3] Update testsPython.yml Add failure notification to CI workflow --- .github/workflows/testsPython.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testsPython.yml b/.github/workflows/testsPython.yml index 452f71d..d56a802 100644 --- a/.github/workflows/testsPython.yml +++ b/.github/workflows/testsPython.yml @@ -73,7 +73,7 @@ jobs: - name: Notify on test results run: | if [ "${{ needs.python-unit-tests.result }}" == "success" ]; then - echo "success notifications go here" + echo "✅ Tests passed successfully." else - echo "failure notifications go here" + echo "❌ CI/CD Alert: Python tests failed. Please review the logs." fi From faae03a61c7117b083b4f5ceeb15bd077b49758d Mon Sep 17 00:00:00 2001 From: jingled18 Date: Sun, 3 May 2026 00:29:34 +0800 Subject: [PATCH 2/3] Update testsPython.yml Add if: always() --- .github/workflows/testsPython.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/testsPython.yml b/.github/workflows/testsPython.yml index d56a802..d231ff2 100644 --- a/.github/workflows/testsPython.yml +++ b/.github/workflows/testsPython.yml @@ -68,6 +68,7 @@ jobs: # on the test results. notifications: needs: python-unit-tests + if: always() runs-on: ubuntu-latest steps: - name: Notify on test results From 7b2a3ce4a5763310a8fa47f72b43c9bacbd86098 Mon Sep 17 00:00:00 2001 From: jingled18 Date: Sun, 3 May 2026 00:37:07 +0800 Subject: [PATCH 3/3] Update testsPython.yml Ensure notification runs after test failure --- .github/workflows/testsPython.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testsPython.yml b/.github/workflows/testsPython.yml index d231ff2..34c2959 100644 --- a/.github/workflows/testsPython.yml +++ b/.github/workflows/testsPython.yml @@ -68,7 +68,7 @@ jobs: # on the test results. notifications: needs: python-unit-tests - if: always() + if: ${{ always() }} runs-on: ubuntu-latest steps: - name: Notify on test results