From 05ea5a3388996ab2312cc69772c3165543a0972b 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 013d733a7..cf0322c84 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 f48515bec..cddf1ebdc 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