Update transifex-pull.yml #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |