CI: run the documentation tests on docs-only pull requests

This commit is contained in:
CI fix
2026-11-22 13:36:01 +00:00
committed by Kam471
parent 89b047cd8f
commit 81fa469eb9

View File

@ -45,6 +45,13 @@ jobs:
}
"docs-only=$($docsOnly.ToString().ToLowerInvariant())" >> $env:GITHUB_OUTPUT
exit 0 # GitHub's pwsh wrapper would otherwise forward git diff's status.
# A docs-only diff still needs the tests that read those documents: the link checker walks every tracked
# Markdown file, and the i18n index checks docs/i18n/README.md. Both are standard library only.
- name: Check documentation when only documentation changed
if: steps.paths.outputs.docs-only == 'true'
run: |
python3 -I tests/test_docs_links.py
python3 -I tests/test_i18n_index.py
check:
needs: change-scope