Skip to content

Commit ba869ab

Browse files
committed
Add test_build_wheels_linux_v2.yml: build torchvision via v2 (uv)
Exercises build_wheels_linux_v2.yml end-to-end by building pytorch/vision (compiled C++/CUDA extension) — stress-tests the uv interpreter, cmake/ninja toolchain, torch dep install, manylinux repair, and smoke test. Runs on PRs touching the v2 workflow / matrix / pkg-helpers, and on dispatch.
1 parent 9265993 commit ba869ab

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
test:
33+
needs: generate-matrix
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
include:
38+
- repository: pytorch/vision
39+
pre-script: packaging/pre_build_script.sh
40+
post-script: packaging/post_build_script.sh
41+
smoke-test-script: test/smoke_test.py
42+
package-name: torchvision
43+
uses: ./.github/workflows/build_wheels_linux_v2.yml
44+
name: ${{ matrix.repository }}
45+
with:
46+
repository: ${{ matrix.repository }}
47+
ref: nightly
48+
test-infra-repository: ${{ github.repository }}
49+
test-infra-ref: ${{ github.ref }}
50+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
51+
pre-script: ${{ matrix.pre-script }}
52+
post-script: ${{ matrix.post-script }}
53+
smoke-test-script: ${{ matrix.smoke-test-script }}
54+
package-name: ${{ matrix.package-name }}
55+
trigger-event: "${{ github.event_name }}"

0 commit comments

Comments
 (0)