Skip to content

Commit 6a0e207

Browse files
committed
Fix naming
1 parent edc872b commit 6a0e207

File tree

1 file changed

+62
-45
lines changed

1 file changed

+62
-45
lines changed
Lines changed: 62 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Validate binaries
1+
name: Validate domain libary
22

33
# A reusable workflow that triggers a set of jobs that perform a smoke test / validation of pytorch binaries.
44
# Optionally restricts validation to the specified OS and channel.
@@ -22,59 +22,76 @@ on:
2222
default: ""
2323
required: false
2424
type: string
25-
workflow_dispatch:
26-
inputs:
27-
os:
28-
description: "Operating system to generate for (linux, windows, macos, macos-arm64)"
25+
package-type:
26+
description: "Package type (conda, wheel, all)"
2927
required: true
30-
type: choice
31-
default: all
32-
options:
33-
- windows
34-
- linux
35-
- macos
36-
- all
37-
channel:
38-
description: "Channel to use (nightly, test, release, all)"
28+
type: string
29+
repository:
30+
description: "Path to repository to checkout"
31+
required: true
32+
type: string
33+
smoke_test:
34+
description: "Path to a smoke test script"
3935
required: true
40-
type: choice
41-
default: all
42-
options:
43-
- release
44-
- nightly
45-
- test
46-
- all
47-
ref:
48-
description: 'Reference to checkout, defaults to empty'
49-
default: ""
50-
required: false
5136
type: string
5237

5338
jobs:
54-
win:
55-
if: inputs.os == 'windows' || inputs.os == 'all'
56-
uses: ./.github/workflows/validate-windows-binaries.yml
57-
with:
58-
channel: ${{ inputs.channel }}
59-
ref: ${{ inputs.ref || github.ref }}
6039

61-
linux:
62-
if: inputs.os == 'linux' || inputs.os == 'all'
63-
uses: ./.github/workflows/validate-linux-binaries.yml
40+
generate-linux-conda-matrix:
41+
if: (inputs.os == 'linux' || inputs.os == 'all') && (inputs.package_type == 'conda' || inputs.package_type == 'all')
42+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
6443
with:
44+
package-type: conda
45+
os: linux
6546
channel: ${{ inputs.channel }}
66-
ref: ${{ inputs.ref || github.ref }}
67-
68-
mac:
69-
if: inputs.os == 'macos' || inputs.os == 'all'
70-
uses: ./.github/workflows/validate-macos-binaries.yml
47+
with-cuda: disable
48+
generate-linux-wheel-matrix:
49+
if: (inputs.os == 'linux' || inputs.os == 'all') && (inputs.package_type == 'wheel' || inputs.package_type == 'all')
50+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
7151
with:
72-
channel: ${{ inputs.channel }}
52+
package-type: wheel
53+
os: linux
54+
channel: ${{ inputs.channel || 'nightly' }}
55+
with-cuda: disable
56+
validate-conda-linux:
57+
if: (inputs.os == 'linux' || inputs.os == 'all') && (inputs.package_type == 'conda' || inputs.package_type == 'all')
58+
needs: generate-linux-conda-matrix
59+
strategy:
60+
matrix: ${{ fromJson(needs.generate-linux-conda-matrix.outputs.matrix) }}
61+
fail-fast: false
62+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
63+
name: "text-${{ matrix.package_type }}-${{ matrix.python_version }}"
64+
with:
65+
runner: "linux.2xlarge"
66+
repository: ${{ input.repository }}
7367
ref: ${{ inputs.ref || github.ref }}
74-
75-
mac-arm64:
76-
if: inputs.os == 'macos' || inputs.os == 'all'
77-
uses: ./.github/workflows/validate-macos-arm64-binaries.yml
68+
job-name: "text-${{ matrix.package_type }}-${{ matrix.python_version }}"
69+
script: |
70+
set -ex
71+
export ENV_NAME="conda-env-${{ github.run_id }}"
72+
export DESIRED_PYTHON="${{ matrix.python_version }}"
73+
export PACKAGE_TYPE="${{ matrix.package_type }}"
74+
export CHANNEL="${{ matrix.channel }}"
75+
export SMOKE_TEST="${{ input.smoke_test }}"
76+
eval $SMOKE_TEST
77+
validate-wheel-linux:
78+
if: (inputs.os == 'linux' || inputs.os == 'all') && (inputs.package_type == 'wheel' || inputs.package_type == 'all')
79+
needs: generate-linux-wheel-matrix
80+
strategy:
81+
matrix: ${{ fromJson(needs.generate-linux-wheel-matrix.outputs.matrix) }}
82+
fail-fast: false
83+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
84+
name: "text-${{ matrix.package_type }}-${{ matrix.python_version }}"
7885
with:
79-
channel: ${{ inputs.channel }}
86+
runner: "linux.2xlarge"
87+
repository: ${{ input.repository }}
8088
ref: ${{ inputs.ref || github.ref }}
89+
job-name: "text-${{ matrix.package_type }}-${{ matrix.python_version }}"
90+
script: |
91+
set -ex
92+
export ENV_NAME="conda-env-${{ github.run_id }}"
93+
export DESIRED_PYTHON="${{ matrix.python_version }}"
94+
export PACKAGE_TYPE="${{ matrix.package_type }}"
95+
export CHANNEL="${{ matrix.channel }}"
96+
export SMOKE_TEST="${{ input.smoke_test }}"
97+
eval $SMOKE_TEST

0 commit comments

Comments
 (0)