From 4a8477baf2e520f151ef9e73734fd05b3ae8025c Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 23 Oct 2023 21:51:12 +0100 Subject: [PATCH] Simplify how we run mypy_test.py on Python 3.12 --- .github/workflows/tests.yml | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 75603ab30b51..8b7f67baca65 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -94,7 +94,7 @@ jobs: strategy: matrix: platform: ["linux", "win32", "darwin"] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] fail-fast: false steps: - uses: actions/checkout@v4 @@ -106,25 +106,6 @@ jobs: - run: pip install -r requirements-tests.txt - run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }} - # Run mypy slightly differently on the py312 stubs, - # 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 - strategy: - matrix: - platform: ["linux", "win32", "darwin"] - fail-fast: false - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: "3.11" - cache: pip - cache-dependency-path: requirements-tests.txt - - run: pip install -r requirements-tests.txt - - run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=3.12 - regression-tests: name: Run mypy on the test cases runs-on: ubuntu-latest