Skip to content

Commit d424547

Browse files
authored
Run tests with Python 3.12 (#11544)
1 parent a4b70db commit d424547

File tree

6 files changed

+19
-11
lines changed

6 files changed

+19
-11
lines changed

.github/workflows/daily.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767
- uses: actions/checkout@v4
6868
- uses: actions/setup-python@v5
6969
with:
70+
# TODO: Use Python 3.12. As of 2024-03-08, several third-party
71+
# packages fail to install with Python 3.12.
7072
python-version: "3.10"
7173
cache: pip
7274
cache-dependency-path: |
@@ -115,7 +117,7 @@ jobs:
115117
path: stub_uploader
116118
- uses: actions/setup-python@v5
117119
with:
118-
python-version: "3.11"
120+
python-version: "3.12"
119121
- name: Install uv
120122
run: curl -LsSf https://astral.sh/uv/install.sh | sh
121123
- name: Run tests

.github/workflows/meta_tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/checkout@v4
3838
- uses: actions/setup-python@v5
3939
with:
40-
python-version: "3.11"
40+
python-version: "3.12"
4141
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
4242
- run: uv pip install -r requirements-tests.txt --system
4343
- run: python ./tests/typecheck_typeshed.py --platform=${{ matrix.platform }}
@@ -52,7 +52,8 @@ jobs:
5252
- uses: actions/checkout@v4
5353
- uses: actions/setup-python@v5
5454
with:
55-
python-version: "3.9"
55+
# Max supported Python version as of pytype 2024.2.27.
56+
python-version: "3.11"
5657
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
5758
- run: uv pip install -r requirements-tests.txt --system
5859
- name: Get pyright version
@@ -66,7 +67,7 @@ jobs:
6667
with:
6768
version: ${{ steps.pyright_version.outputs.value }}
6869
python-platform: ${{ matrix.python-platform }}
69-
python-version: "3.9"
70+
python-version: "3.9" # The Python version to test against.
7071
project: ./pyrightconfig.scripts_and_tests.json
7172
stubsabot-dry-run:
7273
name: Stubsabot dry run
@@ -75,7 +76,7 @@ jobs:
7576
- uses: actions/checkout@v4
7677
- uses: actions/setup-python@v5
7778
with:
78-
python-version: "3.11"
79+
python-version: "3.12"
7980
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
8081
- name: Git config
8182
run: |

.github/workflows/mypy_primer.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
fetch-depth: 0
3232
- uses: actions/setup-python@v5
3333
with:
34+
# TODO: As of 2024-03-08, confluent-kafka fails to install with
35+
# Python 3.12.
3436
python-version: "3.11"
3537
- name: Install dependencies
3638
run: pip install git+https://github.com/hauntsaninja/mypy_primer.git

.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.11"
29+
python-version: "3.12"
3030
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
3131
- name: git config
3232
run: |

.github/workflows/stubtest_third_party.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
fetch-depth: 0
4242
- uses: actions/setup-python@v5
4343
with:
44+
# TODO: Use Python 3.12. As of 2024-03-08, several third-party
45+
# packages fail to install with Python 3.12.
4446
python-version: "3.10"
4547
cache: pip
4648
cache-dependency-path: |

.github/workflows/tests.yml

Lines changed: 6 additions & 5 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.11"
32+
python-version: "3.12"
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_consistent.py
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v4
4242
- uses: actions/setup-python@v5
4343
with:
44-
python-version: "3.11"
44+
python-version: "3.12"
4545
- run: ./tests/check_new_syntax.py
4646

4747
pytype:
@@ -51,6 +51,7 @@ jobs:
5151
- uses: actions/checkout@v4
5252
- uses: actions/setup-python@v5
5353
with:
54+
# Max supported Python version as of pytype 2024.2.27.
5455
python-version: "3.11"
5556
- name: Install uv
5657
run: curl -LsSf https://astral.sh/uv/install.sh | sh
@@ -89,7 +90,7 @@ jobs:
8990
- uses: actions/checkout@v4
9091
- uses: actions/setup-python@v5
9192
with:
92-
python-version: "3.11"
93+
python-version: "3.12"
9394
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
9495
- run: uv pip install -r requirements-tests.txt --system
9596
- run: python ./tests/regr_test.py --all --verbosity QUIET
@@ -106,7 +107,7 @@ jobs:
106107
- uses: actions/checkout@v4
107108
- uses: actions/setup-python@v5
108109
with:
109-
python-version: "3.11"
110+
python-version: "3.12"
110111
- name: Install uv
111112
run: curl -LsSf https://astral.sh/uv/install.sh | sh
112113
- name: Install typeshed test-suite requirements
@@ -171,7 +172,7 @@ jobs:
171172
path: stub_uploader
172173
- uses: actions/setup-python@v5
173174
with:
174-
python-version: "3.11"
175+
python-version: "3.12"
175176
- name: Install uv
176177
run: curl -LsSf https://astral.sh/uv/install.sh | sh
177178
- name: Run tests

0 commit comments

Comments
 (0)