55 - cron : ' 0 6 * * *'
66 push :
77 branches : ['main']
8+ pull_request :
9+ branches : ['main']
810 workflow_dispatch :
911
1012jobs :
13+
1114 update-translation :
1215 runs-on : ubuntu-latest
1316 strategy :
2124 - uses : actions/setup-python@master
2225 with :
2326 python-version : 3
24- - run : sudo apt-get install -y gettext
2527 - run : curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
2628 working-directory : /usr/local/bin
2729 - run : pip install requests cogapp polib transifex-python sphinx-lint sphinx-intl blurb six
@@ -41,15 +43,28 @@ jobs:
4143 - uses : ad-m/github-push-action@master
4244 with :
4345 branch : ${{ matrix.version }}
46+ force : true
4447 github_token : ${{ secrets.GITHUB_TOKEN }}
45- - uses : peter-evans/repository-dispatch@main
48+
49+ lint-translation :
50+ runs-on : ubuntu-latest
51+ strategy :
52+ fail-fast : false
53+ matrix :
54+ version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
55+ needs : [ 'update-translation' ]
56+ continue-on-error : true
57+ steps :
58+ - uses : actions/setup-python@master
4659 with :
4760 python-version : 3
61+ - run : pip install sphinx-lint
4862 - uses : actions/checkout@master
4963 with :
5064 ref : ${{ matrix.version }}
5165 - uses : rffontenelle/sphinx-lint-problem-matcher@v1.0.0
5266 - run : sphinx-lint
67+
5368 build-translation :
5469 runs-on : ubuntu-latest
5570 strategy :
@@ -77,10 +92,12 @@ jobs:
7792 - uses : sphinx-doc/github-problem-matcher@v1.1
7893 - run : make -e SPHINXOPTS=" -D language='uk' -W --keep-going" ${{ matrix.format }}
7994 working-directory : ./Doc
95+ - run : make sphinx-lint
8096 - uses : actions/upload-artifact@master
8197 with :
8298 name : build-${{ matrix.version }}-${{ matrix.format }}
8399 path : Doc/build/${{ matrix.format }}
100+
84101 output-pdf :
85102 runs-on : ubuntu-latest
86103 strategy :
0 commit comments