Skip to content

Commit 61d312b

Browse files
atalmanaditew01
authored andcommitted
Add check_binary workflow to pytorch/pytorch (pytorch#143201)
Migrated from pytorch/builder Related to: pytorch/builder#2054 Copying from : pytorch/builder@3468139 Pull Request resolved: pytorch#143201 Approved by: https://github.com/seemethere, https://github.com/malfet
1 parent c6b41eb commit 61d312b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test check_binary
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/test-check-binary.yml
7+
- .ci/pytorch/check_binary.sh
8+
- .ci/pytorch//smoke_test/smoke_test.py
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
check_binary_linux_cpu:
16+
if: github.repository_owner == 'pytorch'
17+
name: Test check_binary.sh for Linux CPU
18+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
19+
with:
20+
docker-image: python:3.11
21+
docker-build-dir: "skip-docker-build"
22+
script: |
23+
pushd .ci/pytorch/
24+
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
25+
DESIRED_PYTHON=3.11 DESIRED_CUDA=cpu PACKAGE_TYPE=manywheel ./check_binary.sh
26+
popd
27+
28+
check_binary_linux_cuda:
29+
if: github.repository_owner == 'pytorch'
30+
name: Test check_binary.sh for Linux CUDA
31+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
32+
with:
33+
runner: linux.4xlarge.nvidia.gpu
34+
docker-image: python:3.11
35+
docker-build-dir: "skip-docker-build"
36+
script: |
37+
pushd .ci/pytorch/
38+
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124
39+
DESIRED_PYTHON=3.11 DESIRED_CUDA=cu124 PACKAGE_TYPE=manywheel ./check_binary.sh
40+
popd

0 commit comments

Comments
 (0)