From e68c89f98063d3466ae751cca1410a2957b39b11 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Fri, 12 Sep 2025 16:33:23 +0200 Subject: [PATCH] ci: run lint/tests in any branches The `*` results in branches with a `/` excluded. Also exclude running tests if only docs change. --- .github/workflows/lint.yml | 2 +- .github/workflows/tests.yml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 74556ee58..af57c2376 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -5,7 +5,7 @@ on: # This should disable running the workflow on tags, according to the # on.. GitHub Actions docs. branches: - - "*" + - "**" # Note: trying to exclude pull requests because it results in duplicate job # on the commits belonging to pull requests. # pull_request: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 67a94fb9d..a458b64ed 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,7 +5,10 @@ on: # This should disable running the workflow on tags, according to the # on.. GitHub Actions docs. branches: - - "*" + - "**" + paths-ignore: + - README.rst + - "docs/*" # Note: trying to exclude pull requests because it results in duplicate job # on the commits belonging to pull requests. # pull_request: -- 2.47.3