1
+ name : Translation and Linting Workflow
2
+
1
3
on :
2
4
schedule :
3
5
- cron : ' 0 6 * * *'
9
11
update-translation :
10
12
runs-on : ubuntu-latest
11
13
strategy :
14
+ fail-fast : false
12
15
matrix :
13
16
version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
14
17
steps :
18
21
- uses : actions/setup-python@master
19
22
with :
20
23
python-version : 3
24
+ - run : sudo apt-get install -y gettext
21
25
- run : curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
22
26
working-directory : /usr/local/bin
23
- - run : pip install requests cogapp polib transifex-python sphinx-intl blurb six
27
+ - run : pip install requests cogapp polib transifex-python sphinx-lint sphinx- intl blurb six
24
28
- uses : actions/checkout@master
25
29
with :
26
30
ref : ${{ matrix.version }}
@@ -40,19 +44,24 @@ jobs:
40
44
github_token : ${{ secrets.GITHUB_TOKEN }}
41
45
- uses : peter-evans/repository-dispatch@main
42
46
with :
43
- token : ${{ secrets.GITHUB_TOKEN }}
44
- event-type : translation-updated
47
+ python-version : 3
48
+ - uses : actions/checkout@master
49
+ with :
50
+ ref : ${{ matrix.version }}
51
+ - uses : rffontenelle/sphinx-lint-problem-matcher@v1.0.0
52
+ - run : sphinx-lint
45
53
build-translation :
46
54
runs-on : ubuntu-latest
47
55
strategy :
56
+ fail-fast : false
48
57
matrix :
49
58
version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
50
59
format : [html, latex]
51
60
needs : ['update-translation']
52
61
steps :
53
62
- uses : actions/setup-python@master
54
63
with :
55
- python-version : 3
64
+ python-version : 3.12 # pin for Sphinx 3.4.3 in 3.10 branch (see #63)
56
65
- uses : actions/checkout@master
57
66
with :
58
67
repository : python/cpython
65
74
path : Doc/locales/uk/LC_MESSAGES
66
75
- run : git pull
67
76
working-directory : ./Doc/locales/uk/LC_MESSAGES
68
- - run : make -e SPHINXOPTS="-D language='uk' -D gettext_compact=0" SPHINXERRORHANDLING="" ${{ matrix.format }}
77
+ - uses : sphinx-doc/github-problem-matcher@v1.1
78
+ - run : make -e SPHINXOPTS=" -D language='uk' -W --keep-going" ${{ matrix.format }}
69
79
working-directory : ./Doc
70
80
- uses : actions/upload-artifact@master
71
81
with :
74
84
output-pdf :
75
85
runs-on : ubuntu-latest
76
86
strategy :
87
+ fail-fast : false
77
88
matrix :
78
89
version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
79
90
needs : ['build-translation']
0 commit comments