Skip to content

Commit aed14cd

Browse files
committed
test
1 parent 53c988f commit aed14cd

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/validate-repackaged-binary-sizes.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
whl:
26-
- url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp310-cp310-linux_x86_64.whl
27-
python: "3.10" # python version to use for smoke tests
28-
upload_artifact: false # upload the repackaged binary as an artifact
29-
- url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp37-cp37m-linux_x86_64.whl
30-
python: "3.7"
26+
- url: https://download.pytorch.org/whl/test/cu121/torch-2.2.0-cu121-cp312-cp312-linux_x86_64.whl
27+
python: "3.12"
3128
artifact: false
32-
- url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp38-cp38-linux_x86_64.whl
33-
python: "3.8"
29+
- url: https://download.pytorch.org/whl/test/cu121/torch-2.2.0-cu121-cp311-cp311-linux_x86_64.whl
30+
python: "3.11" # python version to use for smoke tests
31+
upload_artifact: false # upload the repackaged binary as an artifact
32+
- url: https://download.pytorch.org/whl/test/cu121/torch-2.2.0-cu121-cp310-cp310-linux_x86_64.whl
33+
python: "3.10"
3434
artifact: false
35-
- url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp39-cp39-linux_x86_64.whl
35+
- url: https://download.pytorch.org/whl/test/cu121/torch-2.2.0-cu121-cp319-cp319-linux_x86_64.whl
3636
python: "3.9"
3737
artifact: false
38-
# - url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp311-cp311-linux_x86_64.whl
39-
# python: "3.11"
40-
# artifact: false
38+
- url: https://download.pytorch.org/whl/test/cu121/torch-2.2.0-cu121-cp318-cp318-linux_x86_64.whl
39+
python: "3.8"
40+
artifact: false
4141

4242
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
4343
with:
@@ -55,34 +55,34 @@ jobs:
5555
export PACKAGE_TYPE="wheel"
5656
export TARGET_OS="linux"
5757
export INSTALLATION=""
58-
58+
5959
# install zip
6060
sudo yum install zip -y
61-
61+
6262
# install patchelf
6363
chmod a+x common/install_patchelf.sh
6464
sudo common/install_patchelf.sh
65-
65+
6666
# download torch whl
6767
wget ${{ matrix.whl.url }}
6868
FILENAME=$(ls -1 *.whl | head -n 1)
6969
SIZE_BEFORE=$(du -h $FILENAME | cut -f1)
70-
70+
7171
# repackage into manywheel
7272
release/pypi/prep_binary_for_pypi.sh $FILENAME
73-
73+
7474
NEW_FILENAME=$(ls -1 *.whl | head -n 1)
7575
echo "::notice:: $FILENAME before: $SIZE_BEFORE after: $(du -h $NEW_FILENAME | cut -f1)"
76-
76+
7777
# cp to ${RUNNER_ARTIFACT_DIR}
7878
cp $NEW_FILENAME ${RUNNER_ARTIFACT_DIR}/
79-
79+
8080
# create conda env
8181
conda create -y -n $ENV_NAME python=$DESIRED_PYTHON
8282
conda activate $ENV_NAME
83-
83+
8484
# install torch
8585
pip install numpy pillow $NEW_FILENAME
86-
86+
8787
# run smoke test
88-
python ./test/smoke_test/smoke_test.py --package=torchonly
88+
python ./test/smoke_test/smoke_test.py --package=torchonly

0 commit comments

Comments
 (0)