From a64acb5d8286e5fd3cc1b4bce4f4ecbfc631bba6 Mon Sep 17 00:00:00 2001 From: Dibbu-cell Date: Mon, 13 Oct 2025 18:46:19 +0530 Subject: [PATCH] ci: skip tests for doc-only changes by adding paths-ignore to generated workflows --- .github/workflows/test-integrations-ai.yml | 12 ++++++++++++ .github/workflows/test-integrations-cloud.yml | 12 ++++++++++++ .github/workflows/test-integrations-common.yml | 12 ++++++++++++ .github/workflows/test-integrations-dbs.yml | 12 ++++++++++++ .github/workflows/test-integrations-flags.yml | 12 ++++++++++++ .github/workflows/test-integrations-gevent.yml | 12 ++++++++++++ .github/workflows/test-integrations-graphql.yml | 12 ++++++++++++ .github/workflows/test-integrations-misc.yml | 12 ++++++++++++ .github/workflows/test-integrations-network.yml | 12 ++++++++++++ .github/workflows/test-integrations-tasks.yml | 12 ++++++++++++ .github/workflows/test-integrations-web-1.yml | 12 ++++++++++++ .github/workflows/test-integrations-web-2.yml | 12 ++++++++++++ scripts/split_tox_gh_actions/templates/base.jinja | 12 ++++++++++++ 13 files changed, 156 insertions(+) diff --git a/.github/workflows/test-integrations-ai.yml b/.github/workflows/test-integrations-ai.yml index 1b9a341f17..bdedad6be4 100644 --- a/.github/workflows/test-integrations-ai.yml +++ b/.github/workflows/test-integrations-ai.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/.github/workflows/test-integrations-cloud.yml b/.github/workflows/test-integrations-cloud.yml index 48a2881ffc..cad76c27ba 100644 --- a/.github/workflows/test-integrations-cloud.yml +++ b/.github/workflows/test-integrations-cloud.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index eb5dde8b17..88cd611fbd 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/.github/workflows/test-integrations-dbs.yml b/.github/workflows/test-integrations-dbs.yml index a778ce86d5..44b1b422b9 100644 --- a/.github/workflows/test-integrations-dbs.yml +++ b/.github/workflows/test-integrations-dbs.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/.github/workflows/test-integrations-flags.yml b/.github/workflows/test-integrations-flags.yml index ce622d4258..47620a05e8 100644 --- a/.github/workflows/test-integrations-flags.yml +++ b/.github/workflows/test-integrations-flags.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/.github/workflows/test-integrations-gevent.yml b/.github/workflows/test-integrations-gevent.yml index 8b077f357c..4c4429262c 100644 --- a/.github/workflows/test-integrations-gevent.yml +++ b/.github/workflows/test-integrations-gevent.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index f1a43dc77d..1416adad5a 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/.github/workflows/test-integrations-misc.yml b/.github/workflows/test-integrations-misc.yml index 2aaf2f07fe..fe1df7bb50 100644 --- a/.github/workflows/test-integrations-misc.yml +++ b/.github/workflows/test-integrations-misc.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/.github/workflows/test-integrations-network.yml b/.github/workflows/test-integrations-network.yml index e8b5b36c98..5a6f23269f 100644 --- a/.github/workflows/test-integrations-network.yml +++ b/.github/workflows/test-integrations-network.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/.github/workflows/test-integrations-tasks.yml b/.github/workflows/test-integrations-tasks.yml index 2dfae9c9a3..7e29f2df5e 100644 --- a/.github/workflows/test-integrations-tasks.yml +++ b/.github/workflows/test-integrations-tasks.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/.github/workflows/test-integrations-web-1.yml b/.github/workflows/test-integrations-web-1.yml index 455f15723a..15cfc14cc9 100644 --- a/.github/workflows/test-integrations-web-1.yml +++ b/.github/workflows/test-integrations-web-1.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/.github/workflows/test-integrations-web-2.yml b/.github/workflows/test-integrations-web-2.yml index 98cf4456e8..3f5f308d18 100644 --- a/.github/workflows/test-integrations-web-2.yml +++ b/.github/workflows/test-integrations-web-2.yml @@ -9,7 +9,19 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value concurrency: diff --git a/scripts/split_tox_gh_actions/templates/base.jinja b/scripts/split_tox_gh_actions/templates/base.jinja index 5d59e63348..861403bb38 100644 --- a/scripts/split_tox_gh_actions/templates/base.jinja +++ b/scripts/split_tox_gh_actions/templates/base.jinja @@ -12,8 +12,20 @@ on: - master - release/** - potel-base + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' pull_request: + # Avoid running tests when only documentation files change + paths-ignore: + - '**/*.md' + - 'docs/**' + - 'README.md' + - 'CHANGELOG.md' # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value