Skip to content

Commit 5795416

Browse files
committed
Only trigger CI builds on master branch and pull requests
If we trigger on every branch we will have redundant CI runs for branches with pull requests.
1 parent 3e4398a commit 5795416

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: CI
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches: ["master"]
5+
pull_request:
6+
37
jobs:
48
tests:
59
name: "Python ${{ matrix.python-version }}"

0 commit comments

Comments
 (0)