Skip to content

Commit 1544d67

Browse files
committed
Add build documentation to lint
1 parent 38c09b6 commit 1544d67

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

.github/workflows/lint.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,47 @@ jobs:
1515
lint:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- name: Checkout code
18+
- name: Checkout CPython docs
1919
uses: actions/checkout@v4
20+
with:
21+
repository: python/cpython
22+
ref: v3.14.6
2023

2124
- name: Set up Python
2225
uses: actions/setup-python@v4
2326
with:
24-
python-version: '3.11'
27+
python-version: '3.12'
2528

2629
- name: Install sphinx-lint and polib
2730
run: pip install sphinx-lint polib
2831

2932
- name: Install gettext tools
3033
run: sudo apt-get install -y gettext
3134

35+
- name: Setup virtual environment
36+
run: make venv
37+
working-directory: ./Doc
38+
39+
- name: Checkout translation files
40+
uses: actions/checkout@v4
41+
with:
42+
path: Doc/locales/fa/LC_MESSAGES
43+
3244
- name: Setup problem matcher
3345
uses: rffontenelle/sphinx-lint-problem-matcher@v1.0.0
3446

3547
- name: Run sphinx-lint
3648
run: sphinx-lint
37-
continue-on-error: true
49+
working-directory: Doc/locales/fa/LC_MESSAGES
3850

3951
- name: Check PO file validity
4052
run: find . -name '*.po' -exec msgfmt --check {} \;
53+
working-directory: Doc/locales/fa/LC_MESSAGES
4154

4255
- name: Check markup preservation
43-
run: python3 scripts/check_markup.py .
56+
run: python3 scripts/check_markup.py .
57+
working-directory: Doc/locales/fa/LC_MESSAGES
58+
59+
- name: Build documentation
60+
run: make -e SPHINXOPTS="--color -D language='fa' -D gettext_allow_fuzzy_translations=1 -W --keep-going" html
61+
working-directory: ./Doc

0 commit comments

Comments
 (0)