From fe9a3b5a025b86ed55438cbca7d9187eec2c4ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lukas=20Sp=C3=A4h?= Date: Tue, 10 Jun 2025 08:16:01 +0200 Subject: [PATCH] Only run the linting and ode tests when pushing to main or making a PR to any branch --- .github/workflows/lint.yaml | 4 ++-- .github/workflows/ode.yaml | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index e668fa0..6c693c0 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -2,9 +2,9 @@ name: lint on: push: - branches: [ "*" ] + branches: [ "main" ] pull_request: - branches: [ main ] + branches: [ "*" ] jobs: lint: diff --git a/.github/workflows/ode.yaml b/.github/workflows/ode.yaml index 539e8f3..db23be0 100644 --- a/.github/workflows/ode.yaml +++ b/.github/workflows/ode.yaml @@ -1,9 +1,11 @@ name: Test ODE module + on: push: - branches: [ "*" ] + branches: [ "main" ] pull_request: - branches: [ main ] + branches: [ "*" ] + jobs: test: runs-on: ubuntu-latest