|
64 | 64 | version: "0.8.23" |
65 | 65 |
|
66 | 66 | - name: Set up Python |
67 | | - uses: actions/setup-python@v5 |
68 | | - with: |
69 | | - python-version-file: '.python-version' |
| 67 | + run: uv python install |
70 | 68 |
|
71 | 69 | - name: Cache build artifacts |
72 | 70 | if: matrix.platform != 'macos' |
@@ -137,9 +135,7 @@ jobs: |
137 | 135 | version: "0.8.23" |
138 | 136 |
|
139 | 137 | - name: Set up Python |
140 | | - uses: actions/setup-python@v5 |
141 | | - with: |
142 | | - python-version-file: '.python-version' |
| 138 | + run: uv python install |
143 | 139 |
|
144 | 140 | - name: Download Warp build artifact |
145 | 141 | uses: actions/download-artifact@v4 |
@@ -192,9 +188,7 @@ jobs: |
192 | 188 | version: "0.8.23" |
193 | 189 |
|
194 | 190 | - name: Set up Python |
195 | | - uses: actions/setup-python@v5 |
196 | | - with: |
197 | | - python-version-file: '.python-version' |
| 191 | + run: uv python install |
198 | 192 |
|
199 | 193 | - name: Download Warp build artifact |
200 | 194 | uses: actions/download-artifact@v4 |
@@ -225,9 +219,7 @@ jobs: |
225 | 219 | with: |
226 | 220 | version: "0.8.23" |
227 | 221 | - name: Set up Python |
228 | | - uses: actions/setup-python@v5 |
229 | | - with: |
230 | | - python-version-file: '.python-version' |
| 222 | + run: uv python install |
231 | 223 | - name: Download Warp binaries |
232 | 224 | uses: actions/download-artifact@v4 |
233 | 225 | with: |
@@ -281,9 +273,7 @@ jobs: |
281 | 273 | with: |
282 | 274 | version: "0.8.23" |
283 | 275 | - name: Set up Python |
284 | | - uses: actions/setup-python@v5 |
285 | | - with: |
286 | | - python-version-file: '.python-version' |
| 276 | + run: uv python install |
287 | 277 | - name: Download native headers |
288 | 278 | uses: actions/download-artifact@v4 |
289 | 279 | with: |
@@ -337,3 +327,20 @@ jobs: |
337 | 327 | fi |
338 | 328 |
|
339 | 329 | echo "SUCCESS: All symbols are correctly namespaced." |
| 330 | +
|
| 331 | + # Validate that the type stub file (warp/__init__.pyi) passes pyright's type checking. |
| 332 | + # TODO: Remove continue-on-error once existing pyright issues are resolved. |
| 333 | + pyright-stubs: |
| 334 | + runs-on: ubuntu-latest |
| 335 | + continue-on-error: true # Allow failures until existing issues are fixed |
| 336 | + steps: |
| 337 | + - name: Checkout repository |
| 338 | + uses: actions/checkout@v4 |
| 339 | + - name: Install uv |
| 340 | + uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 |
| 341 | + with: |
| 342 | + version: "0.8.23" |
| 343 | + - name: Set up Python |
| 344 | + run: uv python install |
| 345 | + - name: Run pyright on stub file |
| 346 | + run: uvx pyright warp/__init__.pyi |
0 commit comments