Skip to content

Test Build Workflow #45

Test Build Workflow

Test Build Workflow #45

Workflow file for this run

name: Test Build Workflow
on:
push:
branches:
- '*'
workflow_dispatch:
jobs:
build-translation:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['3.14']
format: [html, epub]
steps:
# Python
- uses: actions/setup-python@v5
with:
python-version: '3.12'
# CPython source
- uses: actions/checkout@v4
with:
repository: python/cpython
ref: ${{ matrix.version }}
# Build env
- run: make venv
working-directory: ./Doc
# Tamil translations
- uses: actions/checkout@v4
with:
repository: Terminal-Joint/python-docs-ta
path: Doc/locales/ta/LC_MESSAGES
# Disable strict warnings (CRITICAL)
- name: Disable strict mode
run: |
sed -i "s/-W//g" Doc/Makefile
sed -i "s/warningiserror = True/warningiserror = False/g" Doc/conf.py || true
# Build docs
- run: make -e SPHINXOPTS="--color -D language='ta' --keep-going" ${{ matrix.format }}
working-directory: ./Doc
# Upload
- uses: actions/upload-artifact@v4
if: always()
with:
name: build-${{ matrix.version }}-${{ matrix.format }}
path: Doc/build/${{ matrix.format }}