From a4213fca0f977d2665336664ce1edc340c76753d Mon Sep 17 00:00:00 2001 From: Raphael Nestler Date: Sat, 30 Sep 2023 12:44:35 +0200 Subject: [PATCH] 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. --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ddd1371..134f0f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,9 @@ name: CI -on: [push, pull_request] +on: + push: + branches: ["master"] + pull_request: + jobs: tests: name: "Python ${{ matrix.python-version }}"