From 905b866a7ffa8b3527dd2a02b7c603d41d59063f Mon Sep 17 00:00:00 2001 From: David de la Iglesia Castro Date: Mon, 9 Dec 2024 12:19:34 +0100 Subject: [PATCH 1/2] Only run tests on `src` and `tests` changes. Prevent to run `tests` workflow, which takes some time, unnecessarily (i.e when updating docs) --- .github/workflows/tests.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index a78085e..032fb57 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -3,7 +3,13 @@ name: Tests on: push: branches: [main] + paths: + - 'src/**' + - 'tests/**' pull_request: + paths: + - 'src/**' + - 'tests/**' workflow_dispatch: jobs: From fde1d458b2b341efa642f69026a99b4e767b51ce Mon Sep 17 00:00:00 2001 From: daavoo Date: Mon, 9 Dec 2024 12:22:07 +0100 Subject: [PATCH 2/2] pre-commit --- .github/workflows/tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 032fb57..40e950b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -3,11 +3,11 @@ name: Tests on: push: branches: [main] - paths: + paths: - 'src/**' - 'tests/**' pull_request: - paths: + paths: - 'src/**' - 'tests/**' workflow_dispatch: