From ea4dc3f5150e52c4609ec09b10f3ad2f7b9fe0bd Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Wed, 2 Sep 2026 22:36:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Only=20run=20unittests=20on=20pu?= =?UTF-8?q?shes=20to=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `push:` had no branch filter, so every push to a PR branch triggered the 15-job matrix twice: once for `push`, once for `pull_request`. Scoping it to main matches pre-commit.yml and codeql-analysis.yml and halves CI load on PR branches. Co-Authored-By: Claude Opus 5 --- .github/workflows/linting_and_unittests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/linting_and_unittests.yml b/.github/workflows/linting_and_unittests.yml index 7ce6e2f..152ba7d 100644 --- a/.github/workflows/linting_and_unittests.yml +++ b/.github/workflows/linting_and_unittests.yml @@ -2,6 +2,7 @@ name: "unittests" on: push: + branches: ["main"] pull_request: branches: ["main"]