Skip to content

Commit

Permalink
Simplify how we run mypy_test.py on Python 3.12 (#10923)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Oct 23, 2023
1 parent ba3f23b commit 40caa05
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 40caa05

Please sign in to comment.