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