1
+ name : Building and Linting Workflow
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 0 * * * *'
6
+ push :
7
+ branches :
8
+ - ' *'
9
+ workflow_dispatch :
10
+
11
+ jobs :
12
+ lint :
13
+ runs-on : ubuntu-latest
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ version : [3.13, 3.9, 3.8, 3.7, 3.6]
18
+ continue-on-error : true
19
+ steps :
20
+ - uses : actions/setup-python@master
21
+ with :
22
+ python-version : 3
23
+ - run : pip install sphinx-lint
24
+ - uses : actions/checkout@master
25
+ with :
26
+ ref : ${{ matrix.version }}
27
+ - uses : rffontenelle/sphinx-lint-problem-matcher@v1.0.0
28
+ - run : sphinx-lint
29
+
30
+ build-translation :
31
+ runs-on : ubuntu-latest
32
+ strategy :
33
+ fail-fast : false
34
+ matrix :
35
+ version : [3.13, 3.9, 3.8, 3.7, 3.6]
36
+ format : [html, latex]
37
+ steps :
38
+ - uses : actions/setup-python@master
39
+ with :
40
+ python-version : 3.12
41
+ - uses : actions/checkout@master
42
+ with :
43
+ repository : python/cpython
44
+ ref : ${{ matrix.version }}
45
+ - run : make venv
46
+ working-directory : ./Doc
47
+ - uses : actions/checkout@master
48
+ with :
49
+ ref : ${{ matrix.version }}
50
+ path : Doc/locales/ko/LC_MESSAGES
51
+ - run : git pull
52
+ working-directory : ./Doc/locales/ko/LC_MESSAGES
53
+ - uses : sphinx-doc/github-problem-matcher@v1.1
54
+ - run : make -e SPHINXOPTS="--color -D language='ko' -W --keep-going" ${{ matrix.format }}
55
+ working-directory : ./Doc
56
+ - uses : actions/upload-artifact@master
57
+ if : success() || failure()
58
+ with :
59
+ name : build-${{ matrix.version }}-${{ matrix.format }}
60
+ path : Doc/build/${{ matrix.format }}
61
+
62
+ output-pdf :
63
+ runs-on : ubuntu-latest
64
+ strategy :
65
+ matrix :
66
+ version : [3.13, 3.9, 3.8, 3.7, 3.6]
67
+ needs : ['build-translation']
68
+ steps :
69
+ - uses : actions/download-artifact@master
70
+ with :
71
+ name : build-${{ matrix.version }}-latex
72
+ - run : sudo apt-get update
73
+ - run : sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy
74
+ - run : make
75
+ - uses : actions/upload-artifact@master
76
+ with :
77
+ name : build-${{ matrix.version }}-pdf
78
+ path : .
0 commit comments