11name : Translation and Linting Workflow
2-
32on :
43 schedule :
54 - cron : ' 0 * * * *'
65 push :
76 branches :
87 - ' *'
98 workflow_dispatch :
10-
119permissions : {}
12-
1310jobs :
1411 update :
1512 runs-on : ubuntu-latest
1815 matrix :
1916 version : [3.15, 3.14, 3.13, 3.12, 3.11, '3.10']
2017 permissions :
21- contents : write # commit and push
18+ contents : write # commit and push
2219 steps :
2320 - uses : styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
2421 with :
5047 if : ${{ hashFiles('README.md') != '' }}
5148 env :
5249 TX_TOKEN : ${{ secrets.TX_TOKEN }}
53- - name : Update README.en.md
50+ - name : Update README.en.md
5451 run : python -Werror -m cogapp -rP README.en.md
5552 if : ${{ hashFiles('README.en.md') != '' }}
5653 env :
6057 - name : Check changes significance
6158 run : >
6259 ! git diff -I'^"POT-Creation-Date: ' -I'^"Language-Team: ' -I'^# ' -I'^"Last-Translator: ' -I'^"Project-Id-Version: ' --exit-code && echo "SIGNIFICANT_CHANGES=1" >> "$GITHUB_ENV" || exit 0
60+
6361 - run : git add .
6462 - run : git commit -m "$(python manage_translation.py generate_commit_msg)"
6563 if : env.SIGNIFICANT_CHANGES
6967 with :
7068 branch : ${{ matrix.version }}
7169 github_token : ${{ secrets.GITHUB_TOKEN }}
72-
7370 lint :
7471 runs-on : ubuntu-latest
7572 strategy :
8986 persist-credentials : false
9087 - uses : rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0
9188 - run : sphinx-lint
92-
9389 build :
9490 runs-on : ubuntu-latest
9591 strategy :
10197 steps :
10298 - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
10399 with :
104- python-version : 3.12 # pin for Sphinx 3.4.3 in 3.10 branch (see #63)
100+ python-version : 3.12 # pin for Sphinx 3.4.3 in 3.10 branch (see #63)
105101 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
106102 with :
107103 repository : python/cpython
@@ -126,7 +122,6 @@ jobs:
126122 with :
127123 name : build-${{ matrix.version }}-${{ matrix.format }}
128124 path : Doc/build/${{ matrix.format }}
129-
130125 output-pdf :
131126 runs-on : ubuntu-latest
132127 strategy :
@@ -144,7 +139,6 @@ jobs:
144139 with :
145140 name : build-${{ matrix.version }}-pdf
146141 path : .
147-
148142 lint-epub :
149143 runs-on : ubuntu-latest
150144 strategy :
0 commit comments