From 77d2ef72c89d7669be69b578d8cb9bcb6d008ace Mon Sep 17 00:00:00 2001 From: Cyril Achard Date: Mon, 9 Mar 2026 13:56:49 +0100 Subject: [PATCH 1/2] Trigger CI on main/master pushes and tags Extend workflow triggers to run tests on pushes to main and master as well as version tags. Update python-package.yml to include branches (main, master) for push events and testing-ci.yml to include the same branches and tag pushes; also restrict PR validation to PRs targeting main/master. This ensures CI runs for mainline development, PRs, and releases. --- .github/workflows/python-package.yml | 4 ++++ .github/workflows/testing-ci.yml | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 81b9a41..ad51524 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -6,9 +6,13 @@ name: Build, validate & Release on: # Release pipeline: run only when pushing a version-like tag (e.g. v1.2.3) + # Test pipeline: run tests on main/master pushes & pull requests AND tags. push: tags: - "v*.*.*" + branches: + - main + - master # Validation pipeline: run on PRs targeting main/master (no publishing) pull_request: diff --git a/.github/workflows/testing-ci.yml b/.github/workflows/testing-ci.yml index a915d32..f69b189 100644 --- a/.github/workflows/testing-ci.yml +++ b/.github/workflows/testing-ci.yml @@ -1,7 +1,14 @@ name: CI on: + push: + branches: + - main + - master + tags: + - "v*.*.*" pull_request: + branches: [main, master] types: [opened, synchronize, reopened] concurrency: From 98e3a5c8466d26c1793eafb5ed5d81f67ea99e2e Mon Sep 17 00:00:00 2001 From: Cyril Achard Date: Mon, 9 Mar 2026 15:32:03 +0100 Subject: [PATCH 2/2] Update .github/workflows/python-package.yml Include the manual dispatch trigger, in case we'd ever want to run the CI manually Co-authored-by: Jaap de Ruyter van Steveninck <32810691+deruyter92@users.noreply.github.com> --- .github/workflows/python-package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index ad51524..b0e1170 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,6 +5,7 @@ name: Build, validate & Release # - For releases: when you push a tag like v1.2.3, this workflow runs the full matrix validation, then builds the release artifacts, and finally publishes to PyPI if all checks pass. on: + workflow_dispatch: # Release pipeline: run only when pushing a version-like tag (e.g. v1.2.3) # Test pipeline: run tests on main/master pushes & pull requests AND tags. push: