From acaf5a362c6a2aaa7e124d0566305a13006cf334 Mon Sep 17 00:00:00 2001 From: Tomasz Urbaszek Date: Wed, 11 Sep 2024 12:08:18 +0200 Subject: [PATCH 1/2] Run tests only when code changes --- .github/workflows/test.yaml | 8 ++++++++ .github/workflows/test_e2e.yaml | 8 ++++++++ .github/workflows/test_integration.yaml | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3961e7bc4..3b67601b8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -2,6 +2,14 @@ name: Testing on: pull_request: + paths: + - ".github/workflows/**" + - "src/**" + - "test_external_plugins/**" + - "tests/**" + - "tests_common/**" + - "tests_e2e/**" + - "tests_integration/**" branches: - "*" push: diff --git a/.github/workflows/test_e2e.yaml b/.github/workflows/test_e2e.yaml index f87aaa656..f0f07998e 100644 --- a/.github/workflows/test_e2e.yaml +++ b/.github/workflows/test_e2e.yaml @@ -2,6 +2,14 @@ name: E2E testing on: pull_request: + paths: + - ".github/workflows/**" + - "src/**" + - "test_external_plugins/**" + - "tests/**" + - "tests_common/**" + - "tests_e2e/**" + - "tests_integration/**" branches: - "*" push: diff --git a/.github/workflows/test_integration.yaml b/.github/workflows/test_integration.yaml index 163ae291c..f75c2c3f1 100644 --- a/.github/workflows/test_integration.yaml +++ b/.github/workflows/test_integration.yaml @@ -2,6 +2,14 @@ name: Integration testing on: pull_request: + paths: + - ".github/workflows/**" + - "src/**" + - "test_external_plugins/**" + - "tests/**" + - "tests_common/**" + - "tests_e2e/**" + - "tests_integration/**" branches: - "*" push: From 30572b6414a48224dc917c314c3c87f433367246 Mon Sep 17 00:00:00 2001 From: Tomasz Urbaszek Date: Wed, 11 Sep 2024 12:10:24 +0200 Subject: [PATCH 2/2] fixup! Run tests only when code changes --- .github/workflows/test.yaml | 2 ++ .github/workflows/test_e2e.yaml | 2 ++ .github/workflows/test_integration.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3b67601b8..c0ad36762 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,6 +10,8 @@ on: - "tests_common/**" - "tests_e2e/**" - "tests_integration/**" + - ".pre-commit-config.yaml" + - "pyproject.toml" branches: - "*" push: diff --git a/.github/workflows/test_e2e.yaml b/.github/workflows/test_e2e.yaml index f0f07998e..515ff7456 100644 --- a/.github/workflows/test_e2e.yaml +++ b/.github/workflows/test_e2e.yaml @@ -10,6 +10,8 @@ on: - "tests_common/**" - "tests_e2e/**" - "tests_integration/**" + - ".pre-commit-config.yaml" + - "pyproject.toml" branches: - "*" push: diff --git a/.github/workflows/test_integration.yaml b/.github/workflows/test_integration.yaml index f75c2c3f1..bc06f5163 100644 --- a/.github/workflows/test_integration.yaml +++ b/.github/workflows/test_integration.yaml @@ -10,6 +10,8 @@ on: - "tests_common/**" - "tests_e2e/**" - "tests_integration/**" + - ".pre-commit-config.yaml" + - "pyproject.toml" branches: - "*" push: