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
11 changes: 11 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

name: Debug Manual Run

on:
workflow_dispatch:

jobs:
debug:
runs-on: ubuntu-latest
steps:
- run: echo "Workflow runs"
30 changes: 22 additions & 8 deletions .github/workflows/testsPython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ on:

env:
python-version: "3.13"
NOTIFY_USER: santosi0

jobs:
# Job #1: Run Python unit tests
Expand Down Expand Up @@ -68,12 +69,25 @@ jobs:
# on the test results.
notifications:
needs: python-unit-tests
runs-on: ubuntu-latest
runs-on: ubuntu-latest
# Only run this job if the test job failed
if: needs.python-unit-tests.result == 'failure'

steps:
- name: Notify on test results
run: |
if [ "${{ needs.python-unit-tests.result }}" == "success" ]; then
echo "success notifications go here"
else
echo "failure notifications go here"
fi
- name: Create GitHub issue on test failure
uses: actions/github-script@v7
with:
script: |
github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: "❌ Python Unit Tests Failed",
body: `@${process.env.NOTIFY_USER}
The Python unit tests failed.

• Workflow: ${context.workflow}
• Branch: ${context.ref}
• Commit: ${context.sha}
Please check the GitHub Actions logs for details.`
)
''
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ export

ifeq ($(OS),Windows_NT)
PYTHON := python.exe
ACTIVATE_VENV := venv\Scripts\activate
ACTIVATE_VENV := venv/Scripts/activate
else
PYTHON := python3.13
ACTIVATE_VENV := source venv/bin/activate
ACTIVATE_VENV := source venv/Scripts/activate
endif
PIP := $(PYTHON) -m pip

Expand Down