]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: run lint/tests in any branches
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Sep 2025 14:33:23 +0000 (16:33 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Sep 2025 15:22:03 +0000 (17:22 +0200)
The `*` results in branches with a `/` excluded.

Also exclude running tests if only docs change.

.github/workflows/lint.yml
.github/workflows/tests.yml

index 74556ee58cbd33e5546299be8a127cd95a94afd1..af57c2376dbf5e42862432147edf9e8e9e2da8d9 100644 (file)
@@ -5,7 +5,7 @@ on:
     # This should disable running the workflow on tags, according to the
     # on.<push|pull_request>.<branches|tags> 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:
index 67a94fb9dc32b0b84df2981ce83f912fc6209ec4..a458b64edda4fb69c4cd7adbe1b82bf52f5fff0c 100644 (file)
@@ -5,7 +5,10 @@ on:
     # This should disable running the workflow on tags, according to the
     # on.<push|pull_request>.<branches|tags> 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: