From d7e717f443839717ac60980c795cb841a831a3c1 Mon Sep 17 00:00:00 2001 From: Roman Cattaneo <1116746+romanc@users.noreply.github.com> Date: Thu, 14 Aug 2025 17:11:43 +0200 Subject: [PATCH] ci: only run on push to main branch Currently, "pace main unit tests" run on push to any branch. In case of `develop`, this is redundant with the merge queue checks. In case of any branch that isn't protected (e.g. isn't the main branch), running ci isn't necessary. This is consistent with the linting workflow and other workflow configurations (e.g. PyFV3 and PySHiELD). --- .github/workflows/main_unit_tests.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main_unit_tests.yaml b/.github/workflows/main_unit_tests.yaml index 6d69f1a3..ddcb0e65 100644 --- a/.github/workflows/main_unit_tests.yaml +++ b/.github/workflows/main_unit_tests.yaml @@ -14,7 +14,9 @@ on: required: false pull_request: # ... a PR is opened / updated merge_group: # ... the PR is added to the merge queue - push: # ... code is pushed to any branch + push: + branches: + - main # ... when merging into the main branch # cancel running jobs if theres a newer push concurrency: