From bc19a28c0dd4876788bd9a5a0deedc20211cd9af Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Sun, 29 Aug 2021 13:00:10 +0200 Subject: [PATCH] CI: use one runner per mypy version (#5909) This makes it easier to see in which version(s) an error occurred. --- .github/workflows/tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1dc0ce26b..8c7dadb83 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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