ci: allow docs-only pull requests to skip tests (#12174)

* add-docs-only-to-skip-tests

* coderabbit-suggestion
This commit is contained in:
Mendon Kissling
2026-03-13 12:10:55 -04:00
committed by GitHub
parent 45114192d0
commit ba8dab1e46

View File

@@ -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 }}