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 Jun 24, 2024
1 parent 3a389be commit a4213fc
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 a4213fc

Please sign in to comment.