|
8 | 8 | workflow_dispatch: |
9 | 9 |
|
10 | 10 | jobs: |
| 11 | + mypy-self-check: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v3 |
| 18 | + - name: Set up Python ${{ matrix.python-version }} |
| 19 | + uses: actions/setup-python@v4 |
| 20 | + with: |
| 21 | + python-version: ${{ matrix.python-version }} |
| 22 | + - name: Install dependencies |
| 23 | + run: | |
| 24 | + pip install -U pip setuptools wheel |
| 25 | + pip install -r ./requirements.txt |
| 26 | + - name: Run mypy on plugin code |
| 27 | + run: mypy --strict mypy_drf_plugin |
| 28 | + - name: Run mypy on scripts and utils |
| 29 | + run: mypy --strict scripts |
| 30 | + - name: Run mypy on stubs |
| 31 | + run: mypy --cache-dir=/dev/null --no-incremental rest_framework-stubs |
| 32 | + |
11 | 33 | lint: |
12 | 34 | runs-on: ubuntu-latest |
13 | 35 | strategy: |
|
31 | 53 | runs-on: ubuntu-latest |
32 | 54 | strategy: |
33 | 55 | matrix: |
34 | | - python-version: ['3.7', '3.8', '3.9', '3.10'] |
| 56 | + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
35 | 57 | steps: |
36 | 58 | - uses: actions/checkout@v3 |
37 | 59 | - name: Setup system dependencies |
|
54 | 76 | runs-on: ubuntu-latest |
55 | 77 | strategy: |
56 | 78 | matrix: |
57 | | - python-version: ['3.7', '3.8', '3.9', '3.10'] |
| 79 | + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
58 | 80 | steps: |
59 | 81 | - uses: actions/checkout@v3 |
60 | 82 | - name: Setup system dependencies |
|
0 commit comments