]> 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 14:34:00 +0000 (16:34 +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 013d733a7b93b6663d72fe1221c6c272fc6df812..cf0322c8459b869f55873dfe20168d861360e920 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 f48515becdd5e82dd108b98bc5fca4594541ef46..cddf1ebdc1bbd73de8a501eaba7f75924ff28746 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: