Skip to content

Commit 22036e3

Browse files
committed
ci: lint only 3.15 branch
1 parent f359005 commit 22036e3

2 files changed

Lines changed: 13 additions & 19 deletions

File tree

‎.github/workflows/lint-and-built.yml‎

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,29 @@ on:
99
- cron: '34 12 * * SAT'
1010
push:
1111
branches:
12-
- '*'
12+
- '3.15'
1313
workflow_dispatch:
1414

1515
permissions:
1616
contents: read
1717

18+
env:
19+
CPYTHON_BRANCH: '3.15'
20+
1821
jobs:
1922
build-translation:
2023
runs-on: ubuntu-latest
21-
strategy:
22-
fail-fast: false
23-
matrix:
24-
version: [ '3.15', '3.14', '3.13' ]
25-
format: [ html ]
2624
steps:
2725
- name: Set up Python
2826
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2927
with:
30-
python-version: ${{ matrix.version }}
28+
python-version: ${{ env.CPYTHON_BRANCH }}
3129
allow-prereleases: true
3230
- name: Check out CPython
3331
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3432
with:
3533
repository: python/cpython
36-
ref: ${{ matrix.version }}
34+
ref: ${{ env.CPYTHON_BRANCH }}
3735
persist-credentials: false
3836
- name: Install uv for CPython's locked documentation dependencies
3937
run: python -m pip install uv
@@ -44,39 +42,35 @@ jobs:
4442
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4543
with:
4644
# Check the triggering commit when it belongs to this version.
47-
ref: ${{ matrix.version == github.ref_name && github.sha || matrix.version }}
45+
ref: ${{ env.CPYTHON_BRANCH == github.ref_name && github.sha || env.CPYTHON_BRANCH }}
4846
path: Doc/locales/ja/LC_MESSAGES
4947
persist-credentials: false
5048
- uses: sphinx-doc/github-problem-matcher@1f74d6599f4a5e89a20d3c99aab4e6a70f7bda0f # v1.1
5149
- name: Build Japanese documentation
52-
run: make -e SPHINXOPTS="--color -D language=ja -W --keep-going" ${{ matrix.format }}
50+
run: make -e SPHINXOPTS="--color -D language=ja -W --keep-going" html
5351
working-directory: ./Doc
5452
- name: Upload documentation
5553
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
5654
if: success() || failure()
5755
with:
58-
name: build-${{ matrix.version }}-${{ matrix.format }}
59-
path: Doc/build/${{ matrix.format }}
56+
name: build-${{ env.CPYTHON_BRANCH }}-html
57+
path: Doc/build/html
6058

6159
lint:
6260
runs-on: ubuntu-latest
63-
strategy:
64-
fail-fast: false
65-
matrix:
66-
version: [ '3.15', '3.14', '3.13' ]
6761
continue-on-error: true
6862
steps:
6963
- name: Set up Python
7064
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
7165
with:
72-
python-version: ${{ matrix.version }}
66+
python-version: ${{ env.CPYTHON_BRANCH }}
7367
allow-prereleases: true
7468
- name: Install sphinx-lint
7569
run: python -m pip install sphinx-lint
7670
- name: Check out translations
7771
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
7872
with:
79-
ref: ${{ matrix.version == github.ref_name && github.sha || matrix.version }}
73+
ref: ${{ env.CPYTHON_BRANCH == github.ref_name && github.sha || env.CPYTHON_BRANCH }}
8074
persist-credentials: false
8175
- uses: rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0
8276
- run: sphinx-lint

‎.github/workflows/update.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
needs: [update]
7575
strategy:
7676
matrix:
77-
branch: [ "3.14", "3.13", "3.12", "3.11" ]
77+
branch: [ "3.14", "3.13" ]
7878

7979
runs-on: ubuntu-latest
8080
permissions:

0 commit comments

Comments
 (0)