Skip to content

Commit 0d8507b

Browse files
C-Achardderuyter92
andauthored
Trigger CI on main/master pushes and tags (#62)
* 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. * 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> --------- Co-authored-by: Jaap de Ruyter van Steveninck <32810691+deruyter92@users.noreply.github.com>
1 parent bbd735b commit 0d8507b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ name: Build, validate & Release
55
# - 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.
66

77
on:
8+
workflow_dispatch:
89
# Release pipeline: run only when pushing a version-like tag (e.g. v1.2.3)
10+
# Test pipeline: run tests on main/master pushes & pull requests AND tags.
911
push:
1012
tags:
1113
- "v*.*.*"
14+
branches:
15+
- main
16+
- master
1217

1318
# Validation pipeline: run on PRs targeting main/master (no publishing)
1419
pull_request:

.github/workflows/testing-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
name: CI
22

33
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
tags:
9+
- "v*.*.*"
410
pull_request:
11+
branches: [main, master]
512
types: [opened, synchronize, reopened]
613

714
concurrency:

0 commit comments

Comments
 (0)