Skip to content

Commit 352be0f

Browse files
committed
Add test_build_wheels_linux_v2.yml: build torchvision via v2 (uv), py3.12
Exercises build_wheels_linux_v2.yml end-to-end by building pytorch/vision (compiled C++/CUDA extension). Matrix trimmed to Python 3.12 for the initial uv shakedown; expand once green.
1 parent 9265993 commit 352be0f

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Test Build Linux Wheels V2 (uv) - torchvision
2+
3+
# Exercises build_wheels_linux_v2.yml (uv-based, no conda) by building
4+
# torchvision (pytorch/vision) — a compiled C++/CUDA extension, so it stress-
5+
# tests the uv-provisioned interpreter, the cmake/ninja toolchain, the torch
6+
# dependency install, wheel repair, and the smoke test end-to-end.
7+
8+
on:
9+
pull_request:
10+
paths:
11+
- .github/workflows/build_wheels_linux_v2.yml
12+
- .github/workflows/test_build_wheels_linux_v2.yml
13+
- .github/workflows/generate_binary_build_matrix.yml
14+
- .github/workflows/_binary_upload.yml
15+
- tools/scripts/generate_binary_build_matrix.py
16+
- tools/pkg-helpers/pytorch_pkg_helpers/version.py
17+
workflow_dispatch:
18+
19+
permissions:
20+
id-token: write
21+
contents: read
22+
23+
jobs:
24+
generate-matrix:
25+
uses: ./.github/workflows/generate_binary_build_matrix.yml
26+
with:
27+
package-type: wheel
28+
os: linux
29+
test-infra-repository: ${{ github.repository }}
30+
test-infra-ref: ${{ github.ref }}
31+
with-xpu: enable
32+
# Trim to a single Python version for the initial v2 shakedown; expand once green.
33+
python-versions: '["3.12"]'
34+
test:
35+
needs: generate-matrix
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
include:
40+
- repository: pytorch/vision
41+
pre-script: packaging/pre_build_script.sh
42+
post-script: packaging/post_build_script.sh
43+
smoke-test-script: test/smoke_test.py
44+
package-name: torchvision
45+
uses: ./.github/workflows/build_wheels_linux_v2.yml
46+
name: ${{ matrix.repository }}
47+
with:
48+
repository: ${{ matrix.repository }}
49+
ref: nightly
50+
test-infra-repository: ${{ github.repository }}
51+
test-infra-ref: ${{ github.ref }}
52+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
53+
pre-script: ${{ matrix.pre-script }}
54+
post-script: ${{ matrix.post-script }}
55+
smoke-test-script: ${{ matrix.smoke-test-script }}
56+
package-name: ${{ matrix.package-name }}
57+
trigger-event: "${{ github.event_name }}"

0 commit comments

Comments
 (0)