Skip to content

Commit 77d2ef7

Browse files
committed
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.
1 parent 795d04c commit 77d2ef7

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ name: Build, validate & Release
66

77
on:
88
# Release pipeline: run only when pushing a version-like tag (e.g. v1.2.3)
9+
# Test pipeline: run tests on main/master pushes & pull requests AND tags.
910
push:
1011
tags:
1112
- "v*.*.*"
13+
branches:
14+
- main
15+
- master
1216

1317
# Validation pipeline: run on PRs targeting main/master (no publishing)
1418
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)