Skip to content

Update test-build.yml #11

Update test-build.yml

Update test-build.yml #11

Workflow file for this run

name: Test Build Workflow
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- '*'
workflow_dispatch:
jobs:
build-translation:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ['3.14']
format: [html, latex, epub]
steps:
# ✅ Setup Python (stable version, not master)
- uses: actions/setup-python@v5
with:
python-version: '3.12'
# ✅ Checkout CPython source
- uses: actions/checkout@v4
with:
repository: python/cpython
ref: ${{ matrix.version }}
# ✅ Create virtual environment + install dependencies
- run: make venv
working-directory: ./Doc
# ✅ Checkout YOUR Tamil translation repo correctly
- uses: actions/checkout@v4
with:
repository: Terminal-Joint/python-docs-ta # 🔥 IMPORTANT
path: Doc/locales/ta/LC_MESSAGES
# ❌ REMOVED git pull (not needed)
# ✅ Better error display
- uses: sphinx-doc/github-problem-matcher@v1.1
# ✅ Build WITHOUT -W (no warning → error conversion)
- run: make -e SPHINXOPTS="--color -D language='ta' --keep-going" ${{ matrix.format }}
working-directory: ./Doc
# ✅ Upload artifacts even if build partially fails
- uses: actions/upload-artifact@v4
if: always()
with:
name: build-${{ matrix.version }}-${{ matrix.format }}
path: Doc/build/${{ matrix.format }}
output-pdf:
runs-on: ubuntu-latest
needs: [build-translation]
strategy:
matrix:
version: ['3.14']
steps:
# ✅ Download LaTeX build output
- uses: actions/download-artifact@v4
with:
name: build-${{ matrix.version }}-latex
# ✅ Install LaTeX tools
- run: sudo apt-get update
- run: sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy
# ✅ Generate PDF
- run: make
# ✅ Upload PDF
- uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.version }}-pdf
path: ./*.pdf