Skip to content

Commit 1f01772

Browse files
Update test-build.yml
1 parent 466e358 commit 1f01772

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

.github/workflows/test-build.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ on:
1111
jobs:
1212
build-translation:
1313
runs-on: ubuntu-latest
14+
1415
strategy:
1516
fail-fast: false
1617
matrix:
1718
version: ['3.14']
1819
format: [html, latex, epub]
1920

2021
steps:
21-
# ✅ Setup Python (stable version, not master)
22+
# ✅ Setup Python
2223
- uses: actions/setup-python@v5
2324
with:
2425
python-version: '3.12'
@@ -29,26 +30,26 @@ jobs:
2930
repository: python/cpython
3031
ref: ${{ matrix.version }}
3132

32-
#Create virtual environment + install dependencies
33+
#Setup venv and install dependencies
3334
- run: make venv
3435
working-directory: ./Doc
3536

36-
# ✅ Checkout YOUR Tamil translation repo correctly
37+
# ✅ Checkout YOUR Tamil repo correctly
3738
- uses: actions/checkout@v4
3839
with:
39-
repository: Terminal-Joint/python-docs-ta # 🔥 IMPORTANT
40+
repository: Terminal-Joint/python-docs-ta
4041
path: Doc/locales/ta/LC_MESSAGES
4142

42-
# ❌ REMOVED git pull (not needed)
43-
44-
# ✅ Better error display
45-
- uses: sphinx-doc/github-problem-matcher@v1.1
43+
# ✅ Debug: show any inherited SPHINXOPTS
44+
- run: echo "Before override: $SPHINXOPTS"
4645

47-
# ✅ Build WITHOUT -W (no warning → error conversion)
48-
- run: make -e SPHINXOPTS="--color -D language='ta' --keep-going" ${{ matrix.format }}
46+
# ✅ HARD RESET SPHINXOPTS (kills -W from anywhere)
47+
- run: |
48+
unset SPHINXOPTS
49+
make ${{ matrix.format }} SPHINXOPTS="-D language='ta'"
4950
working-directory: ./Doc
5051
51-
# ✅ Upload artifacts even if build partially fails
52+
# ✅ Upload artifacts always
5253
- uses: actions/upload-artifact@v4
5354
if: always()
5455
with:
@@ -64,7 +65,7 @@ jobs:
6465
version: ['3.14']
6566

6667
steps:
67-
# ✅ Download LaTeX build output
68+
# ✅ Download LaTeX output
6869
- uses: actions/download-artifact@v4
6970
with:
7071
name: build-${{ matrix.version }}-latex
@@ -73,7 +74,7 @@ jobs:
7374
- run: sudo apt-get update
7475
- run: sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy
7576

76-
#Generate PDF
77+
#Build PDF
7778
- run: make
7879

7980
# ✅ Upload PDF

0 commit comments

Comments
 (0)