Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/actions/tests/python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Run Python unit tests
#------------------------------------------------------------------------------
name: Test Python
description: "Run Python unit tests in a specified environment"
branding:
icon: "git-pull-request"
color: "orange"
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/testsPython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ on:
push:
branches: #
- main #
- next # Trigger workflow on pushes to main and next
# - next # Trigger workflow on pushes to main and next
- EDBIDev
paths: # branches, but only if Python files are changed
- "**.py" #

Expand Down Expand Up @@ -67,6 +68,7 @@ jobs:
# is scaffolded to facilitate sending notifications based
# on the test results.
notifications:
if: ${{ always() }}
needs: python-unit-tests
runs-on: ubuntu-latest
steps:
Expand All @@ -77,3 +79,23 @@ jobs:
else
echo "failure notifications go here"
fi
email-notification:
if: ${{ always() }}
needs: python-unit-tests
runs-on: ubuntu-latest
steps:
- name: Send mail to Team
uses: dawidd6/action-send-mail@v3
with:
# Your SMTP server details (e.g., Gmail or Outlook)
server_address: smtp.gmail.com
server_port: 465
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}

subject: GitHub Actions Workflow Alert
# Add multiple recipients here, separated by commas
to: stan.tian@ubc.ca, stan.tian@gmail.com

from: GitHub Actions Robot
body: The workflow for ${{github.repository}} has completed!