From 81fa469eb96fa6cf66e4a67fc344e91e9ec3d126 Mon Sep 17 00:00:00 2001 From: CI fix Date: Sun, 22 Nov 2026 13:36:01 +0000 Subject: [PATCH] CI: run the documentation tests on docs-only pull requests --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0154733a0..46156fef9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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