5
5
- cron : ' 0 6 * * *'
6
6
push :
7
7
branches : ['main']
8
+ pull_request :
9
+ branches : ['main']
8
10
workflow_dispatch :
9
11
10
12
jobs :
13
+
11
14
update-translation :
12
15
runs-on : ubuntu-latest
13
16
strategy :
21
24
- uses : actions/setup-python@master
22
25
with :
23
26
python-version : 3
24
- - run : sudo apt-get install -y gettext
25
27
- run : curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
26
28
working-directory : /usr/local/bin
27
29
- run : pip install requests cogapp polib transifex-python sphinx-lint sphinx-intl blurb six
@@ -42,22 +44,34 @@ jobs:
42
44
with :
43
45
branch : ${{ matrix.version }}
44
46
github_token : ${{ secrets.GITHUB_TOKEN }}
45
- - uses : peter-evans/repository-dispatch@main
47
+
48
+ lint-translation :
49
+ runs-on : ubuntu-latest
50
+ strategy :
51
+ fail-fast : false
52
+ matrix :
53
+ version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
54
+ needs : [ 'update-translation' ]
55
+ continue-on-error : true
56
+ steps :
57
+ - uses : actions/setup-python@master
46
58
with :
47
59
python-version : 3
60
+ - run : pip install sphinx-lint
48
61
- uses : actions/checkout@master
49
62
with :
50
63
ref : ${{ matrix.version }}
51
64
-
uses :
rffontenelle/[email protected]
52
65
- run : sphinx-lint
66
+
53
67
build-translation :
54
68
runs-on : ubuntu-latest
55
69
strategy :
56
70
fail-fast : false
57
71
matrix :
58
72
version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
59
73
format : [html, latex]
60
- needs : ['update -translation']
74
+ needs : ['lint -translation']
61
75
steps :
62
76
- uses : actions/setup-python@master
63
77
with :
81
95
with :
82
96
name : build-${{ matrix.version }}-${{ matrix.format }}
83
97
path : Doc/build/${{ matrix.format }}
98
+
84
99
output-pdf :
85
100
runs-on : ubuntu-latest
86
101
strategy :
0 commit comments