Skip to content

Commit

Permalink
Only trigger CI builds on master branch and pull requests
Browse files Browse the repository at this point in the history
If we trigger on every branch we will have redundant CI runs for
branches with pull requests.
  • Loading branch information
rnestler committed Feb 8, 2024
1 parent 89ac7df commit c57c224
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: CI
on: [push, pull_request]
on:
push:
branches: ["master"]
pull_request:

jobs:
tests:
name: "Python ${{ matrix.python-version }}"
Expand Down

0 comments on commit c57c224

Please sign in to comment.