From 5d7a4ab88b1d10a58c13a23118daa21479235bdd Mon Sep 17 00:00:00 2001 From: "Miriam K. Wolff" Date: Thu, 11 Sep 2025 13:04:07 +0200 Subject: [PATCH 1/2] Workflow fix --- .github/workflows/ci.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 920938a..428470f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,15 +1,10 @@ name: CI Workflow -# Trigger the workflow when directly pushing to main or when a PR is merged into main +# Trigger the workflow when pushing to main (includes PR merges) on: push: branches: - main - pull_request: - branches: - - main - types: - - closed # Define the jobs to run in the workflow jobs: From 99c9baecb81f895ed92cade8f42f0e584baee0b0 Mon Sep 17 00:00:00 2001 From: "Miriam K. Wolff" Date: Thu, 11 Sep 2025 13:05:38 +0200 Subject: [PATCH 2/2] Workflow fix again, open PR and run tests before merge --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 428470f..69233c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,17 @@ name: CI Workflow -# Trigger the workflow when pushing to main (includes PR merges) +# Trigger the workflow when pushing to main (includes PR merges) or on PR events on: push: branches: - main + pull_request: + branches: + - main + types: + - opened + - synchronize + - reopened # Define the jobs to run in the workflow jobs: @@ -40,6 +47,7 @@ jobs: pytest - name: Commit and push the generated .dylib file + if: github.ref == 'refs/heads/main' run: | git config --local user.name "GitHub Action" git config --local user.email "action@github.com"