Skip to content

Commit 030e7ad

Browse files
authored
[CI] Use Python 3.13 where possible (#13637)
1 parent 70ecc34 commit 030e7ad

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

.github/workflows/daily.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ jobs:
114114
path: stub_uploader
115115
- uses: actions/setup-python@v5
116116
with:
117-
python-version: "3.12"
117+
# Keep in sync with stub_uploader's check_scripts.yml workflow.
118+
python-version: "3.13"
118119
- uses: astral-sh/setup-uv@v5
119120
- name: Run tests
120121
run: |

.github/workflows/meta_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- uses: actions/checkout@v4
3939
- uses: actions/setup-python@v5
4040
with:
41-
python-version: "3.12"
41+
python-version: "3.13"
4242
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
4343
- run: uv pip install -r requirements-tests.txt --system
4444
- run: python ./tests/typecheck_typeshed.py --platform=${{ matrix.platform }}
@@ -53,6 +53,8 @@ jobs:
5353
- uses: actions/checkout@v4
5454
- uses: actions/setup-python@v5
5555
with:
56+
# TODO: Since pytype is not available for Python 3.13, and
57+
# pytype_test.py imports pytype, we need to use Python 3.12 for now.
5658
python-version: "3.12"
5759
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
5860
- run: uv pip install -r requirements-tests.txt --system
@@ -70,7 +72,7 @@ jobs:
7072
- uses: actions/checkout@v4
7173
- uses: actions/setup-python@v5
7274
with:
73-
python-version: "3.12"
75+
python-version: "3.13"
7476
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
7577
- name: Git config
7678
run: |

.github/workflows/stubsabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fetch-depth: 0
2727
- uses: actions/setup-python@v5
2828
with:
29-
python-version: "3.12"
29+
python-version: "3.13"
3030
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
3131
- name: git config
3232
run: |

.github/workflows/tests.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v4
3030
- uses: actions/setup-python@v5
3131
with:
32-
python-version: "3.12"
32+
python-version: "3.13"
3333
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
3434
- run: uv pip install -r requirements-tests.txt --system
3535
- run: python ./tests/check_typeshed_structure.py
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v4
4242
- uses: actions/setup-python@v5
4343
with:
44-
# Max supported Python version as of pytype 2024.9.13
44+
# Max supported Python version as of pytype 2024.10.11
4545
python-version: "3.12"
4646
- uses: astral-sh/setup-uv@v5
4747
- run: uv pip install -r requirements-tests.txt --system
@@ -98,7 +98,7 @@ jobs:
9898
- uses: actions/checkout@v4
9999
- uses: actions/setup-python@v5
100100
with:
101-
python-version: "3.12"
101+
python-version: "3.13"
102102
- uses: astral-sh/setup-uv@v5
103103
- name: Install typeshed test-suite requirements
104104
# Install these so we can run `get_external_stub_requirements.py`
@@ -122,22 +122,22 @@ jobs:
122122
version: PATH
123123
python-platform: ${{ matrix.python-platform }}
124124
python-version: ${{ matrix.python-version }}
125-
annotate: ${{ matrix.python-version == '3.12' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
125+
annotate: ${{ matrix.python-version == '3.13' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
126126
- name: Run pyright with stricter settings on some of the stubs
127127
uses: jakebailey/pyright-action@v2
128128
with:
129129
version: PATH
130130
python-platform: ${{ matrix.python-platform }}
131131
python-version: ${{ matrix.python-version }}
132-
annotate: ${{ matrix.python-version == '3.12' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
132+
annotate: ${{ matrix.python-version == '3.13' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
133133
project: ./pyrightconfig.stricter.json
134134
- name: Run pyright on the test cases
135135
uses: jakebailey/pyright-action@v2
136136
with:
137137
version: PATH
138138
python-platform: ${{ matrix.python-platform }}
139139
python-version: ${{ matrix.python-version }}
140-
annotate: ${{ matrix.python-version == '3.12' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
140+
annotate: ${{ matrix.python-version == '3.13' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
141141
project: ./pyrightconfig.testcases.json
142142

143143
stub-uploader:
@@ -155,7 +155,8 @@ jobs:
155155
path: stub_uploader
156156
- uses: actions/setup-python@v5
157157
with:
158-
python-version: "3.12"
158+
# Keep in sync with stub_uploader's check_scripts.yml workflow.
159+
python-version: "3.13"
159160
- uses: astral-sh/setup-uv@v5
160161
- name: Run tests
161162
run: |

0 commit comments

Comments
 (0)