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 :
14
- fail-fast : false
15
17
matrix :
16
18
version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
17
19
steps :
22
24
with :
23
25
python-version : 3
24
26
- run : sudo apt-get install -y gettext
27
+ - run : pip install transifex-python six
25
28
- run : curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
26
29
working-directory : /usr/local/bin
27
- - run : pip install requests cogapp polib transifex-python sphinx-lint sphinx-intl blurb six
28
30
- uses : actions/checkout@master
29
31
with :
30
32
ref : ${{ matrix.version }}
34
36
- run : .github/scripts/manage_translation.py fetch_translations
35
37
env :
36
38
TX_TOKEN : ${{ secrets.TX_TOKEN }}
39
+ - run : find -name "*.po" -exec msgcat --no-location -o {} {} \;
37
40
- run : git config --local user.email github-actions@github.com
38
41
- run : git config --local user.name "GitHub Action's update-translation job"
39
42
- run : git add .
@@ -42,18 +45,28 @@ jobs:
42
45
with :
43
46
branch : ${{ matrix.version }}
44
47
github_token : ${{ secrets.GITHUB_TOKEN }}
45
- - uses : peter-evans/repository-dispatch@main
48
+
49
+ lint-translation :
50
+ runs-on : ubuntu-latest
51
+ strategy :
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/sphinx-lint-problem-matcher@v1.0.0
52
65
- run : sphinx-lint
66
+
53
67
build-translation :
54
68
runs-on : ubuntu-latest
55
69
strategy :
56
- fail-fast : false
57
70
matrix :
58
71
version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
59
72
format : [html, latex]
@@ -77,14 +90,15 @@ jobs:
77
90
- uses : sphinx-doc/github-problem-matcher@v1.1
78
91
- run : make -e SPHINXOPTS=" -D language='uk' -W --keep-going" ${{ matrix.format }}
79
92
working-directory : ./Doc
93
+ - run : make sphinx-lint
80
94
- uses : actions/upload-artifact@master
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 :
87
- fail-fast : false
88
102
matrix :
89
103
version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
90
104
needs : ['build-translation']
0 commit comments