10000 Improve how we run mypy on the py312 stubs (#10152) · python/typeshed@1221b47 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1221b47

Browse files
authored
Improve how we run mypy on the py312 stubs (#10152)
1 parent dfee77e commit 1221b47

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/tests.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
strategy:
8686
matrix:
8787
platform: ["linux", "win32", "darwin"]
88-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
88+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
8989
fail-fast: false
9090
steps:
9191
- uses: actions/checkout@v3
@@ -97,6 +97,26 @@ jobs:
9797
- run: pip install -r requirements-tests.txt
9898
- run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }}
9999

100+
# Run mypy slightly differently on the py312 stubs,
101+
# as mypyc doesn't work on Python 3.12 yet
102+
# (and various non-types dependencies can't be installed on Python 3.12 yet)
103+
mypy-312:
104+
name: Run mypy against the stubs (3.12)
105+
runs-on: ubuntu-latest
106+
strategy:
107+
matrix:
108+
platform: ["linux", "win32", "darwin"]
109+
fail-fast: false
110+
steps:
111+
- uses: actions/checkout@v3
112+
- uses: actions/setup-python@v4
113+
with:
114+
python-version: "3.11"
115+
cache: pip
116+
cache-dependency-path: requirements-tests.txt
117+
- run: pip install -r requirements-tests.txt
118+
- run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=3.12
119+
100120
regression-tests:
101121
name: Run mypy on the test cases
102122
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)
0