Skip to content

Commit 3ac6c38

Browse files
authored
Update tools versions in stubtest workflow (#13582)
1 parent e951ca9 commit 3ac6c38

7 files changed

Lines changed: 13 additions & 25 deletions

File tree

.github/workflows/daily.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ jobs:
3434
runs-on: ${{ matrix.os }}
3535
strategy:
3636
matrix:
37-
# As of 2024-10-18, ubuntu-latest can refer to different Ubuntu versions,
38-
# which can can cause problems with os module constants.
39-
os: ["ubuntu-24.04", "windows-latest", "macos-latest"]
37+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
4038
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
4139
fail-fast: false
4240

@@ -61,18 +59,14 @@ jobs:
6159
runs-on: ${{ matrix.os }}
6260
strategy:
6361
matrix:
64-
# As of 2024-10-18, ubuntu-latest can refer to different Ubuntu versions,
65-
# which causes problems when testing gdb.
66-
os: ["ubuntu-24.04", "windows-latest", "macos-latest"]
62+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
6763
shard-index: [0, 1, 2, 3]
6864
fail-fast: false
6965
steps:
7066
- uses: actions/checkout@v4
7167
- uses: actions/setup-python@v5
7268
with:
73-
# TODO: Use Python 3.12. As of 2024-03-08, several third-party
74-
# packages fail to install with Python 3.12.
75-
python-version: "3.11"
69+
python-version: "3.12"
7670
cache: pip
7771
cache-dependency-path: |
7872
requirements-tests.txt

.github/workflows/stubtest_stdlib.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ jobs:
3030
runs-on: ${{ matrix.os }}
3131
strategy:
3232
matrix:
33-
# As of 2024-10-18, ubuntu-latest can refer to different Ubuntu versions,
34-
# which can can cause problems with os module constants.
35-
os: ["ubuntu-24.04", "windows-latest", "macos-latest"]
33+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
3634
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3735
fail-fast: false
3836

.github/workflows/stubtest_third_party.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
runs-on: ${{ matrix.os }}
3333
strategy:
3434
matrix:
35-
# As of 2024-10-18, ubuntu-latest can refer to different Ubuntu versions,
36-
# which causes problems when testing gdb.
37-
os: ["ubuntu-24.04", "windows-latest", "macos-latest"]
35+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
3836
fail-fast: false
3937

4038
steps:
@@ -43,9 +41,7 @@ jobs:
4341
fetch-depth: 0
4442
- uses: actions/setup-python@v5
4543
with:
46-
# TODO: Use Python 3.12. As of 2024-03-08, several third-party
47-
# packages fail to install with Python 3.12.
48-
python-version: "3.11"
44+
python-version: "3.12"
4945
cache: pip
5046
cache-dependency-path: |
5147
requirements-tests.txt

stubs/atheris/METADATA.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ partial_stub = true
44

55
[tool.stubtest]
66
ignore_missing_stub = true
7+
# TODO (2025-03-05): unskip once `atheris` can be installed on `ubuntu-24.04`,
8+
# see https://github.com/python/typeshed/pull/13582 and
9+
# https://github.com/google/atheris/issues/82
10+
skip = true

stubs/gdb/METADATA.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ extra_description = """\
1313
[tool.stubtest]
1414
platforms = ["linux"]
1515
apt_dependencies = ["gdb"]
16+
# TODO (2025-03-05): unskip once `gdb` can be installed on `ubuntu-24.04`,
17+
# see https://github.com/python/typeshed/pull/13582
18+
skip = true

stubs/openpyxl/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,3 @@ openpyxl.worksheet.smart_tag.CellSmartTagPr.__init__
195195
openpyxl.worksheet.smart_tag.CellSmartTags.__init__
196196
openpyxl.worksheet.table.TableColumn.__init__
197197
openpyxl.worksheet.table.XMLColumnProps.__init__
198-
199-
# Inherited from the stdlib, where we lie about the presence
200-
# of this method in order to mark it as deprecated.
201-
openpyxl.xml.functions.Element.__bool__

stubs/requests/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22
requests.packages.mod
33
requests.packages.package
44
requests.packages.target
5-
6-
# Alias for builtins.bytes
7-
requests.compat.bytes.__buffer__

0 commit comments

Comments
 (0)