Skip to content

Commit 208c517

Browse files
committed
fix the translation lint action
1 parent d489049 commit 208c517

1 file changed

Lines changed: 11 additions & 15 deletions

File tree

‎.github/workflows/test-translation.yml‎

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,22 @@ name: Lint and test build
44
on:
55
schedule:
66
- cron: '0 0 * * *'
7-
push:
8-
branches:
9-
- '*'
107
workflow_dispatch:
11-
pull_request:
128

139
jobs:
1410
lint:
1511
runs-on: ubuntu-latest
1612
strategy:
1713
fail-fast: false
1814
matrix:
19-
version: [ '3.14', '3.13', '3.12', '3.11', '3.10' ]
15+
version: [ '3.15', '3.14', '3.13', '3.12', '3.11' ]
2016
continue-on-error: true
2117
steps:
22-
- uses: actions/setup-python@master
18+
- uses: actions/setup-python@v7
2319
with:
2420
python-version: 3
2521
- run: pip install sphinx-lint
26-
- uses: actions/checkout@master
22+
- uses: actions/checkout@v7
2723
with:
2824
ref: ${{ matrix.version }}
2925
- uses: rffontenelle/sphinx-lint-problem-matcher@v1.0.0
@@ -34,19 +30,19 @@ jobs:
3430
strategy:
3531
fail-fast: false
3632
matrix:
37-
version: [ '3.14', '3.13', '3.12', '3.11', '3.10' ]
33+
version: [ '3.15', '3.14', '3.13', '3.12', '3.11' ]
3834
format: [ html, latex ]
3935
steps:
40-
- uses: actions/setup-python@master
36+
- uses: actions/setup-python@7
4137
with:
4238
python-version: 3.12 # pinned for Sphinx 3.4.3 to build 3.10
43-
- uses: actions/checkout@master
39+
- uses: actions/checkout@v7
4440
with:
4541
repository: python/cpython
4642
ref: ${{ matrix.version }}
4743
- run: make venv
4844
working-directory: ./Doc
49-
- uses: actions/checkout@master
45+
- uses: actions/checkout@v7
5046
with:
5147
ref: ${{ matrix.version }}
5248
path: Doc/locales/zh_CN/LC_MESSAGES
@@ -55,7 +51,7 @@ jobs:
5551
- uses: sphinx-doc/github-problem-matcher@v1.1
5652
- run: make -e SPHINXOPTS="--color -D language='zh_CN' -W --keep-going" ${{ matrix.format }}
5753
working-directory: ./Doc
58-
- uses: actions/upload-artifact@master
54+
- uses: actions/upload-artifact@v7
5955
if: success() || failure()
6056
with:
6157
name: build-${{ matrix.version }}-${{ matrix.format }}
@@ -65,16 +61,16 @@ jobs:
6561
runs-on: ubuntu-latest
6662
strategy:
6763
matrix:
68-
version: [ '3.14', '3.13', '3.12', '3.11', '3.10' ]
64+
version: [ '3.15', '3.14', '3.13', '3.12', '3.11' ]
6965
needs: [ 'build-translation' ]
7066
steps:
71-
- uses: actions/download-artifact@master
67+
- uses: actions/download-artifact@v8
7268
with:
7369
name: build-${{ matrix.version }}-latex
7470
- run: sudo apt-get update
7571
- run: sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy
7672
- run: make
77-
- uses: actions/upload-artifact@master
73+
- uses: actions/upload-artifact@v7
7874
with:
7975
name: build-${{ matrix.version }}-pdf
8076
path: .

0 commit comments

Comments
 (0)