Skip to content

Commit eb3e96a

Browse files
committed
Merge branch 'ershi/gh-workflow-pyright' into 'main'
(GitHub Workflows) Simplify Python setup with uv and add pyright stub validation See merge request omniverse/warp!1906
2 parents 5886567 + e391f8f commit eb3e96a

2 files changed

Lines changed: 23 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ jobs:
6464
version: "0.8.23"
6565

6666
- name: Set up Python
67-
uses: actions/setup-python@v5
68-
with:
69-
python-version-file: '.python-version'
67+
run: uv python install
7068

7169
- name: Cache build artifacts
7270
if: matrix.platform != 'macos'
@@ -137,9 +135,7 @@ jobs:
137135
version: "0.8.23"
138136

139137
- name: Set up Python
140-
uses: actions/setup-python@v5
141-
with:
142-
python-version-file: '.python-version'
138+
run: uv python install
143139

144140
- name: Download Warp build artifact
145141
uses: actions/download-artifact@v4
@@ -192,9 +188,7 @@ jobs:
192188
version: "0.8.23"
193189

194190
- name: Set up Python
195-
uses: actions/setup-python@v5
196-
with:
197-
python-version-file: '.python-version'
191+
run: uv python install
198192

199193
- name: Download Warp build artifact
200194
uses: actions/download-artifact@v4
@@ -225,9 +219,7 @@ jobs:
225219
with:
226220
version: "0.8.23"
227221
- name: Set up Python
228-
uses: actions/setup-python@v5
229-
with:
230-
python-version-file: '.python-version'
222+
run: uv python install
231223
- name: Download Warp binaries
232224
uses: actions/download-artifact@v4
233225
with:
@@ -281,9 +273,7 @@ jobs:
281273
with:
282274
version: "0.8.23"
283275
- name: Set up Python
284-
uses: actions/setup-python@v5
285-
with:
286-
python-version-file: '.python-version'
276+
run: uv python install
287277
- name: Download native headers
288278
uses: actions/download-artifact@v4
289279
with:
@@ -337,3 +327,20 @@ jobs:
337327
fi
338328
339329
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

.github/workflows/sphinx.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ jobs:
3737
with:
3838
version: "0.8.23"
3939
- name: Set up Python
40-
uses: actions/setup-python@v5
41-
with:
42-
python-version-file: '.python-version'
40+
run: uv python install
4341
- name: Build Warp without CUDA Support
4442
run: |
4543
uv run build_lib.py

0 commit comments

Comments
 (0)