mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 02:15:58 +08:00
Bump mypy to 1.5.1 (#10559)
This commit is contained in:
12
.github/workflows/daily.yml
vendored
12
.github/workflows/daily.yml
vendored
@@ -36,28 +36,18 @@ jobs:
|
||||
matrix:
|
||||
# tkinter doesn't import on macOS-12
|
||||
os: ["ubuntu-latest", "windows-latest", "macos-11"]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
||||
if: ${{ matrix.os != 'macos-11' || matrix.python-version != '3.7' }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
allow-prereleases: true
|
||||
# Handle the py37 run on macos differently,
|
||||
# to workaround https://github.com/actions/setup-python/issues/682
|
||||
- name: Setup Python 3.7.16 on macos
|
||||
if: ${{ matrix.os == 'macos-11' && matrix.python-version == '3.7' }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.7.16"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements-tests.txt
|
||||
- name: Run stubtest
|
||||
|
||||
12
.github/workflows/stubtest_stdlib.yml
vendored
12
.github/workflows/stubtest_stdlib.yml
vendored
@@ -32,28 +32,18 @@ jobs:
|
||||
matrix:
|
||||
# tkinter doesn't import on macOS 12
|
||||
os: ["ubuntu-latest", "windows-latest", "macos-11"]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
||||
if: ${{ matrix.os != 'macos-11' || matrix.python-version != '3.7' }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
allow-prereleases: true
|
||||
# Handle the py37 run on macos differently,
|
||||
# to workaround https://github.com/actions/setup-python/issues/682
|
||||
- name: Setup Python 3.7.16 on macos
|
||||
if: ${{ matrix.os == 'macos-11' && matrix.python-version == '3.7' }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.7.16"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements-tests.txt
|
||||
- name: Run stubtest
|
||||
|
||||
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@@ -85,7 +85,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
platform: ["linux", "win32", "darwin"]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -98,8 +98,7 @@ jobs:
|
||||
- run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }}
|
||||
|
||||
# Run mypy slightly differently on the py312 stubs,
|
||||
# as mypyc doesn't work on Python 3.12 yet
|
||||
# (and various non-types dependencies can't be installed on Python 3.12 yet)
|
||||
# as at least one non-types dependency (greenlet) can't be installed on Python 3.12 yet
|
||||
mypy-312:
|
||||
name: Run mypy against the stubs (3.12)
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user