From ba8dab1e469cb6739fb2879144dcf314dba06cce Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Fri, 13 Mar 2026 12:10:55 -0400 Subject: [PATCH] ci: allow docs-only pull requests to skip tests (#12174) * add-docs-only-to-skip-tests * coderabbit-suggestion --- .github/workflows/ci.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ba22846a..571ce2e37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -236,7 +236,12 @@ jobs: if: | always() && !cancelled() && - needs.set-ci-condition.outputs.should-run-tests == 'true' + needs.set-ci-condition.outputs.should-run-tests == 'true' && + ( + inputs.run-all-tests || + (needs.path-filter.result != 'skipped' && + needs.path-filter.outputs.docs-only != 'true') + ) uses: ./.github/workflows/python_test.yml with: python-versions: ${{ inputs.python-versions || '["3.10"]' }} @@ -253,7 +258,12 @@ jobs: if: | always() && !cancelled() && - needs.set-ci-condition.outputs.should-run-tests == 'true' + needs.set-ci-condition.outputs.should-run-tests == 'true' && + ( + inputs.run-all-tests || + (needs.path-filter.result != 'skipped' && + needs.path-filter.outputs.docs-only != 'true') + ) uses: ./.github/workflows/jest_test.yml with: ref: ${{ inputs.ref || github.ref }} @@ -266,7 +276,12 @@ jobs: if: | always() && !cancelled() && - needs.set-ci-condition.outputs.should-run-tests == 'true' + needs.set-ci-condition.outputs.should-run-tests == 'true' && + ( + inputs.run-all-tests || + (needs.path-filter.result != 'skipped' && + needs.path-filter.outputs.docs-only != 'true') + ) uses: ./.github/workflows/typescript_test.yml with: tests_folder: ${{ inputs.frontend-tests-folder }}