Skip to content

Commit 7eb1de4

Browse files
authored
Update ci/cd (#25)
1 parent f0acfa9 commit 7eb1de4

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/update-and-build.yml

+16-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Translation and Linting Workflow
2+
13
on:
24
schedule:
35
- cron: '0 6 * * *'
@@ -9,6 +11,7 @@ jobs:
911
update-translation:
1012
runs-on: ubuntu-latest
1113
strategy:
14+
fail-fast: false
1215
matrix:
1316
version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1417
steps:
@@ -18,9 +21,10 @@ jobs:
1821
- uses: actions/setup-python@master
1922
with:
2023
python-version: 3
24+
- run: sudo apt-get install -y gettext
2125
- run: curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
2226
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
2428
- uses: actions/checkout@master
2529
with:
2630
ref: ${{ matrix.version }}
@@ -40,19 +44,24 @@ jobs:
4044
github_token: ${{ secrets.GITHUB_TOKEN }}
4145
- uses: peter-evans/repository-dispatch@main
4246
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
4553
build-translation:
4654
runs-on: ubuntu-latest
4755
strategy:
56+
fail-fast: false
4857
matrix:
4958
version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
5059
format: [html, latex]
5160
needs: ['update-translation']
5261
steps:
5362
- uses: actions/setup-python@master
5463
with:
55-
python-version: 3
64+
python-version: 3.12 # pin for Sphinx 3.4.3 in 3.10 branch (see #63)
5665
- uses: actions/checkout@master
5766
with:
5867
repository: python/cpython
@@ -65,7 +74,8 @@ jobs:
6574
path: Doc/locales/uk/LC_MESSAGES
6675
- run: git pull
6776
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 }}
6979
working-directory: ./Doc
7080
- uses: actions/upload-artifact@master
7181
with:
@@ -74,6 +84,7 @@ jobs:
7484
output-pdf:
7585
runs-on: ubuntu-latest
7686
strategy:
87+
fail-fast: false
7788
matrix:
7889
version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
7990
needs: ['build-translation']

0 commit comments

Comments
 (0)