CI: use one runner per mypy version (#5909)

This makes it easier to see in which version(s) an error occurred.
This commit is contained in:
Sebastian Rittau
2021-08-29 13:00:10 +02:00
committed by GitHub
parent 8d5452e873
commit bc19a28c0d

View File

@@ -7,6 +7,9 @@ on:
permissions:
contents: read
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
jobs:
file-consistency:
name: Check file consistency
@@ -69,12 +72,13 @@ jobs:
strategy:
matrix:
platform: ["linux", "win32", "darwin"]
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install $(grep mypy== requirements-tests-py3.txt)
- run: ./tests/mypy_test.py --platform=${{ matrix.platform }}
- run: ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }}
pyright:
name: Run pyright against the stubs