From a879fe81af1d87cd169c945445892997884eb97a Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Sat, 28 Sep 2024 16:09:28 +0200 Subject: [PATCH] workflow: don't run tests twice in pull requests --- .github/workflows/tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 586dbb75..7c2ee000 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,10 @@ -on: [push, pull_request] +on: + push: + branches: + - main + - develop + pull_request: + jobs: tests: name: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.version }}-python-${{ matrix.python-version }}-${{ matrix.castxml-epic }}