-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.27 KB
/
test-build.yml
File metadata and controls
55 lines (45 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 }}