Skip to content

Commit 73b4aff

Browse files
Avoid duplicate CI runs: trigger push CI on master only
With push CI on all branches, every push to a branch with an open PR fired both a push run and a pull_request run - identical 8-job matrices twice. Branch work is now covered by pull_request only; pushes to master (merges) still run the full matrix. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent b329d16 commit 73b4aff

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: tests
22

33
on:
4+
# Run push CI on master only; branch work is covered by pull_request.
5+
# (Running push CI on all branches would duplicate every run - both
6+
# events fire for each push to a branch with an open PR.)
47
push:
5-
# Note: "**" is required to match branch names containing '/'
6-
branches: [ "**" ]
8+
branches: [ master ]
79
pull_request:
10+
# Note: "**" is required to match branch names containing '/'
811
branches: [ "**" ]
912

1013
jobs:

0 commit comments

Comments
 (0)