-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup periodic test to run binary verification pytorch/pytorch#84764: (
#1144) * add a reusable workflow to run all smoke tests/or smoke tests for a specific os/channel * add workflows to schedule the periodic smoke tests for nightly and release channels
- Loading branch information
1 parent
24d91ba
commit b639eb0
Showing
6 changed files
with
220 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
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 | ||
workflow_dispatch: | ||
inputs: | ||
os: | ||
description: "Operating system to generate for (linux, windows, macos, macos-arm64)" | ||
required: true | ||
type: choice | ||
default: all | ||
options: | ||
- windows | ||
- linux | ||
- macos | ||
- all | ||
channel: | ||
description: "Channel to use (nightly, test, release, all)" | ||
required: true | ||
type: choice | ||
default: all | ||
options: | ||
- release | ||
- nightly | ||
- test | ||
- all | ||
|
||
jobs: | ||
validate-windows-binaries: | ||
if: inputs.os == 'windows' || inputs.os == 'all' | ||
uses: ./.github/workflows/validate-windows-binaries.yml | ||
with: | ||
channel: ${{ inputs.channel }} | ||
|
||
validate-linux-binaries: | ||
if: inputs.os == 'linux' || inputs.os == 'all' | ||
uses: ./.github/workflows/validate-linux-binaries.yml | ||
with: | ||
channel: ${{ inputs.channel }} | ||
|
||
validate-mac-binaries: | ||
if: inputs.os == 'macos' || inputs.os == 'all' | ||
uses: ./.github/workflows/validate-macos-binaries.yml | ||
with: | ||
channel: ${{ inputs.channel }} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Validate nightly binaries (all OS) | ||
|
||
on: | ||
schedule: | ||
# At 2:30 pm UTC (7:30 am PDT) | ||
- cron: "30 14 * * *" | ||
# Have the ability to trigger this job manually through the API | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
main | ||
paths: | ||
- .github/workflows/validate-nightly-binaries.yml | ||
- .github/workflows/validate-linux-binaries.yml | ||
- .github/workflows/validate-windows-binaries.yml | ||
- .github/workflows/validate-macos-binaries.yml | ||
- .test/smoke_test/* | ||
pull_request: | ||
paths: | ||
- .github/workflows/validate-nightly-binaries.yml | ||
- .github/workflows/validate-linux-binaries.yml | ||
- .github/workflows/validate-windows-binaries.yml | ||
- .github/workflows/validate-macos-binaries.yml | ||
- .test/smoke_test/* | ||
|
||
jobs: | ||
validate-nightly-binaries: | ||
uses: ./.github/workflows/validate-binaries.yml | ||
with: | ||
channel: nightly | ||
os: all |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Validate release binaries (all OS) | ||
|
||
on: | ||
schedule: | ||
# At 3 am and 2 pm UTC (7 am and 8 pm PDT) | ||
- cron: "0 3,14 * * *" | ||
# Have the ability to trigger this job manually through the API | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
main | ||
paths: | ||
- .github/workflows/validate-release-binaries.yml | ||
- .github/workflows/validate-linux-binaries.yml | ||
- .github/workflows/validate-windows-binaries.yml | ||
- .github/workflows/validate-macos-binaries.yml | ||
- .test/smoke_test/* | ||
pull_request: | ||
paths: | ||
- .github/workflows/validate-release-binaries.yml | ||
- .github/workflows/validate-linux-binaries.yml | ||
- .github/workflows/validate-windows-binaries.yml | ||
- .github/workflows/validate-macos-binaries.yml | ||
- .test/smoke_test/* | ||
|
||
jobs: | ||
validate-nightly-binaries: | ||
uses: ./.github/workflows/validate-binaries.yml | ||
with: | ||
channel: release | ||
os: all |
Oops, something went wrong.