1111jobs :
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 :
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
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