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 .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ MYSQL_DATABASE=smarter_test_db
MYSQL_CHARSET=utf8mb4
PYTHONPATH=./venv:./
CODECOV_TOKEN=ADD-YOUR-CODECOV_TOKEN-HERE
REPO_NAME=ADD-YOUR-REPO_NAME-HERE
36 changes: 34 additions & 2 deletions .github/workflows/testsPython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,44 @@ jobs:
# on the test results.
notifications:
needs: python-unit-tests
if: always()
runs-on: ubuntu-latest
steps:
# Notifications in Job Summary panel of the workflow run
- name: Notify on test results
run: |
if [ "${{ needs.python-unit-tests.result }}" == "success" ]; then
echo "success notifications go here"
echo "## Tests Passed ✅" >> $GITHUB_STEP_SUMMARY
echo "All unit tests succeeded." >> $GITHUB_STEP_SUMMARY
else
echo "failure notifications go here"
echo "## Tests Failed ❌" >> $GITHUB_STEP_SUMMARY
echo "Check logs for details." >> $GITHUB_STEP_SUMMARY
fi
# Email notification using Brevo when tests pass, BREVO_API_KEY is set in repository secrets
- name: Send success email
if: ${{ needs.python-unit-tests.result == 'success' }}
run: |
curl -X POST https://api.brevo.com/v3/smtp/email \
-H "accept: application/json" \
-H "api-key: ${{ secrets.BREVO_API_KEY }}" \
-H "content-type: application/json" \
-d '{
"sender": { "email": "info@runningresults.net" },
"to": [{ "email": "yongchuangchen@gmail.com" }],
"subject": "Tests Passed ✅",
"htmlContent": "<p>All tests passed successfully.</p>"
}'
# Email notification using Brevo when tests fail, BREVO_API_KEY is set in repository secrets
- name: Send failure email
if: ${{ needs.python-unit-tests.result == 'failure' }}
run: |
curl -X POST https://api.brevo.com/v3/smtp/email \
-H "accept: application/json" \
-H "api-key: ${{ secrets.BREVO_API_KEY }}" \
-H "content-type: application/json" \
-d '{
"sender": { "email": "info@runningresults.net" },
"to": [{ "email": "yongchuangchen@gmail.com" }],
"subject": "Tests Failed ❌",
"htmlContent": "<p>Tests failed. Check logs in GitHub Actions.</p>"
}'
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"cornflakes.linter.executablePath": "venv/bin/flake8",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
}
},
"makefile.configureOnOpen": false
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ make docker-push # push your Docker container to DockerHub. A DockerHub accou
make docker-prune # prune (permanently delete) all existing data in Docker: containers, images, cache.
```

update: README

## Requirements

- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git). _pre-installed on Linux and macOS_
Expand Down
7 changes: 7 additions & 0 deletions agentic-ai-workflow.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"folders": [
{
"path": "."
}
]
}