Validate binaries #393
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate binaries | |
| # A reusable workflow that triggers a set of jobs that perform a smoke test / validation of pytorch binaries. | |
| # Optionally restricts validation to the specified OS and channel. | |
| # For the details about parameter values, see: | |
| # pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main | |
| # For an example of the `workflow_call` usage see: | |
| # https://github.com/pytorch/builder/pull/1144 | |
| on: | |
| workflow_call: | |
| inputs: | |
| os: | |
| description: "Operating system to generate for (linux, windows, macos, macos-arm64)" | |
| required: true | |
| type: string | |
| channel: | |
| description: "Channel to use (nightly, test, release, all)" | |
| required: true | |
| type: string | |
| torchonly: | |
| description: 'Validate torchonly' | |
| default: false | |
| required: false | |
| type: boolean | |
| include-test-ops: | |
| description: 'Include Test Ops tests (only Linux)' | |
| default: false | |
| required: false | |
| type: boolean | |
| include-torchaudio: | |
| description: 'Include torchaudio in validation (by default only torch and torchvision are validated)' | |
| default: false | |
| required: false | |
| type: boolean | |
| use-only-dl-pytorch-org: | |
| description: 'Use only download.pytorch.org when generating wheel install command' | |
| default: "false" | |
| required: false | |
| type: string | |
| use-extra-index-url: | |
| description: 'Use extra-index url for pip tests' | |
| default: false | |
| required: false | |
| type: boolean | |
| use-wheel-variants: | |
| description: 'Use wheel-variants for installing pip binaries' | |
| default: false | |
| required: false | |
| type: boolean | |
| workflow_dispatch: | |
| inputs: | |
| os: | |
| description: "Operating system to generate for (linux, windows, macos, macos-arm64)" | |
| required: true | |
| type: choice | |
| default: all | |
| options: | |
| - windows | |
| - linux | |
| - linux-aarch64 | |
| - macos | |
| - all | |
| channel: | |
| description: "Channel to use (nightly, test, release, all)" | |
| required: true | |
| type: choice | |
| default: test | |
| options: | |
| - release | |
| - nightly | |
| - test | |
| - all | |
| torchonly: | |
| description: 'Validate torchonly' | |
| default: false | |
| required: false | |
| type: boolean | |
| version: | |
| description: 'Version to validate' | |
| default: "" | |
| required: false | |
| type: string | |
| include-test-ops: | |
| description: 'Include Test Ops tests (only Linux)' | |
| default: false | |
| required: false | |
| type: boolean | |
| include-torchaudio: | |
| description: 'Include torchaudio in validation (by default only torch and torchvision are validated)' | |
| default: false | |
| required: false | |
| type: boolean | |
| use-only-dl-pytorch-org: | |
| description: 'Use only download.pytorch.org when generating wheel install command' | |
| default: "false" | |
| required: false | |
| type: string | |
| use-extra-index-url: | |
| description: 'Use extra-index url for pip tests' | |
| default: false | |
| required: false | |
| type: boolean | |
| use-wheel-variants: | |
| description: 'Use wheel-variants for installing pip binaries' | |
| default: false | |
| required: false | |
| type: boolean | |
| jobs: | |
| generate-release-matrix: | |
| uses: ./.github/workflows/generate_release_matrix.yml | |
| with: | |
| version: ${{ inputs.version }} | |
| win: | |
| if: inputs.os == 'windows' || inputs.os == 'all' | |
| needs: generate-release-matrix | |
| uses: ./.github/workflows/validate-windows-binaries.yml | |
| with: | |
| channel: ${{ inputs.channel }} | |
| torchonly: ${{ inputs.torchonly }} | |
| version: ${{ inputs.version }} | |
| release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }} | |
| include-torchaudio: ${{ inputs.include-torchaudio }} | |
| use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }} | |
| use-extra-index-url: ${{ inputs.use-extra-index-url }} | |
| use-wheel-variants: ${{ inputs.use-wheel-variants }} | |
| linux: | |
| if: inputs.os == 'linux' || inputs.os == 'all' | |
| needs: generate-release-matrix | |
| uses: ./.github/workflows/validate-linux-binaries.yml | |
| with: | |
| channel: ${{ inputs.channel }} | |
| torchonly: ${{ inputs.torchonly }} | |
| version: ${{ inputs.version }} | |
| release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }} | |
| include-test-ops: ${{ inputs.include-test-ops }} | |
| include-torchaudio: ${{ inputs.include-torchaudio }} | |
| use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }} | |
| use-extra-index-url: ${{ inputs.use-extra-index-url }} | |
| use-wheel-variants: ${{ inputs.use-wheel-variants }} | |
| linux-aarch64: | |
| if: inputs.os == 'linux-aarch64' || inputs.os == 'all' | |
| needs: generate-release-matrix | |
| uses: ./.github/workflows/validate-aarch64-linux-binaries.yml | |
| with: | |
| channel: ${{ inputs.channel }} | |
| torchonly: ${{ inputs.torchonly }} | |
| version: ${{ inputs.version }} | |
| release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }} | |
| include-torchaudio: ${{ inputs.include-torchaudio }} | |
| use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }} | |
| use-extra-index-url: ${{ inputs.use-extra-index-url }} | |
| use-wheel-variants: ${{ inputs.use-wheel-variants }} | |
| mac-arm64: | |
| if: inputs.os == 'macos' || inputs.os == 'all' | |
| needs: generate-release-matrix | |
| uses: ./.github/workflows/validate-macos-arm64-binaries.yml | |
| with: | |
| channel: ${{ inputs.channel }} | |
| torchonly: ${{ inputs.torchonly }} | |
| version: ${{ inputs.version }} | |
| release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }} | |
| include-torchaudio: ${{ inputs.include-torchaudio }} | |
| use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }} | |
| use-extra-index-url: ${{ inputs.use-extra-index-url }} | |
| use-wheel-variants: ${{ inputs.use-wheel-variants }} |