mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 20:58:36 +00:00
CI: run the documentation tests on docs-only pull requests
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user