|
73 | 73 | - run: uv pip install -r requirements-tests.txt --system |
74 | 74 | - run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${{ matrix.python-version }} |
75 | 75 |
|
| 76 | + # Run this as a separate job, as the other versions in the matrix are |
| 77 | + # (and should be) run *using* the Python version we're testing the stubs for, |
| 78 | + # but we can't install all our non-types dependencies on py313 yet |
| 79 | + mypy-313: |
| 80 | + name: Run mypy against the 3.13 stubs |
| 81 | + runs-on: ubuntu-latest |
| 82 | + strategy: |
| 83 | + matrix: |
| 84 | + platform: ["linux", "win32", "darwin"] |
| 85 | + fail-fast: false |
| 86 | + steps: |
| 87 | + - uses: actions/checkout@v4 |
| 88 | + - uses: actions/setup-python@v5 |
| 89 | + with: |
| 90 | + python-version: 3.12 |
| 91 | + allow-prereleases: true |
| 92 | + - run: curl -LsSf https://astral.sh/uv/install.sh | sh |
| 93 | + - run: uv pip install -r requirements-tests.txt --system |
| 94 | + - run: python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=3.13 |
| 95 | + |
76 | 96 | regression-tests: |
77 | 97 | name: Run mypy on the test cases |
78 | 98 | runs-on: ubuntu-latest |
|
93 | 113 | strategy: |
94 | 114 | matrix: |
95 | 115 | python-platform: ["Linux", "Windows", "Darwin"] |
96 | | - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 116 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] |
97 | 117 | fail-fast: false |
98 | 118 | steps: |
99 | 119 | - uses: actions/checkout@v4 |
@@ -125,22 +145,22 @@ jobs: |
125 | 145 | version: PATH |
126 | 146 | python-platform: ${{ matrix.python-platform }} |
127 | 147 | python-version: ${{ matrix.python-version }} |
128 | | - annotate: ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy. |
| 148 | + annotate: ${{ matrix.python-version == '3.12' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy. |
129 | 149 | - name: Run pyright with stricter settings on some of the stubs |
130 | 150 | uses: jakebailey/pyright-action@v2 |
131 | 151 | with: |
132 | 152 | version: PATH |
133 | 153 | python-platform: ${{ matrix.python-platform }} |
134 | 154 | python-version: ${{ matrix.python-version }} |
135 | | - annotate: ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy. |
| 155 | + annotate: ${{ matrix.python-version == '3.12' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy. |
136 | 156 | project: ./pyrightconfig.stricter.json |
137 | 157 | - name: Run pyright on the test cases |
138 | 158 | uses: jakebailey/pyright-action@v2 |
139 | 159 | with: |
140 | 160 | version: PATH |
141 | 161 | python-platform: ${{ matrix.python-platform }} |
142 | 162 | python-version: ${{ matrix.python-version }} |
143 | | - annotate: ${{ matrix.python-version == '3.11' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy. |
| 163 | + annotate: ${{ matrix.python-version == '3.12' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy. |
144 | 164 | project: ./pyrightconfig.testcases.json |
145 | 165 |
|
146 | 166 | stub-uploader: |
|
0 commit comments