forked from pytorch/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.89 KB
/
Copy pathtest_build_wheels_linux_v2.yml
File metadata and controls
55 lines (51 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Test Build Linux Wheels V2 (uv) - torchvision
# Exercises build_wheels_linux_v2.yml (uv-based, no conda) by building
# torchvision (pytorch/vision) — a compiled C++/CUDA extension, so it stress-
# tests the uv-provisioned interpreter, the cmake/ninja toolchain, the torch
# dependency install, wheel repair, and the smoke test end-to-end.
on:
pull_request:
paths:
- .github/workflows/build_wheels_linux_v2.yml
- .github/workflows/test_build_wheels_linux_v2.yml
- .github/workflows/generate_binary_build_matrix.yml
- .github/workflows/_binary_upload.yml
- tools/scripts/generate_binary_build_matrix.py
- tools/pkg-helpers/pytorch_pkg_helpers/version.py
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
generate-matrix:
uses: ./.github/workflows/generate_binary_build_matrix.yml
with:
package-type: wheel
os: linux
test-infra-repository: ${{ github.repository }}
test-infra-ref: ${{ github.ref }}
with-xpu: enable
test:
needs: generate-matrix
strategy:
fail-fast: false
matrix:
include:
- repository: pytorch/vision
pre-script: packaging/pre_build_script.sh
post-script: packaging/post_build_script.sh
smoke-test-script: test/smoke_test.py
package-name: torchvision
uses: ./.github/workflows/build_wheels_linux_v2.yml
name: ${{ matrix.repository }}
with:
repository: ${{ matrix.repository }}
ref: nightly
test-infra-repository: ${{ github.repository }}
test-infra-ref: ${{ github.ref }}
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }}
smoke-test-script: ${{ matrix.smoke-test-script }}
package-name: ${{ matrix.package-name }}
trigger-event: "${{ github.event_name }}"