Skip to content

Commit 40caa05

Browse files
authored
Simplify how we run mypy_test.py on Python 3.12 (#10923)
1 parent ba3f23b commit 40caa05

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

.github/workflows/tests.yml

+1-20
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
strategy:
9595
matrix:
9696
platform: ["linux", "win32", "darwin"]
97-
python-version: ["3.8", "3.9", "3.10", "3.11"]
97+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
9898
fail-fast: false
9999
steps:
100100
- uses: actions/checkout@v4
@@ -106,25 +106,6 @@ jobs:
106106
- run: pip install -r requirements-tests.txt
107107
- run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }}
108108

109-
# Run mypy slightly differently on the py312 stubs,
110-
# as at least one non-types dependency (greenlet) can't be installed on Python 3.12 yet
111-
mypy-312:
112-
name: Run mypy against the stubs (3.12)
113-
runs-on: ubuntu-latest
114-
strategy:
115-
matrix:
116-
platform: ["linux", "win32", "darwin"]
117-
fail-fast: false
118-
steps:
119-
- uses: actions/checkout@v4
120-
- uses: actions/setup-python@v4
121-
with:
122-
python-version: "3.11"
123-
cache: pip
124-
cache-dependency-path: requirements-tests.txt
125-
- run: pip install -r requirements-tests.txt
126-
- run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=3.12
127-
128109
regression-tests:
129110
name: Run mypy on the test cases
130111
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)