Skip to content

Commit ae85e4c

Browse files
authored
Release 212 testing (#1638)
* Revert "Validate pypi build only for release (#1624)" This reverts commit 56556d0. * Revert "Validate pypi build only for release (#1623)" This reverts commit 4db3d68.
1 parent 2b17d68 commit ae85e4c

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/scripts/validate_pipy.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ fi
1010

1111
if [[ ${TORCH_ONLY} == 'true' ]]; then
1212
TEST_SUFFIX=" --package torchonly"
13-
pip3 install torch${RELEASE_SUFFIX}
13+
pip3 install --pre torch${RELEASE_SUFFIX} --extra-index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
1414
else
15-
pip3 install torch${RELEASE_SUFFIX} torchvision torchaudio
15+
if [[ ${MATRIX_CHANNEL} != "release" ]]; then
16+
pip3 install --pre torch${RELEASE_SUFFIX} --extra-index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
17+
pip3 install --pre torchvision torchaudio --extra-index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}"
18+
else
19+
pip3 install torch${RELEASE_SUFFIX} torchvision torchaudio
20+
fi
1621
fi
1722

1823
python ./test/smoke_test/smoke_test.py ${TEST_SUFFIX} --runtime-error-check disabled

.github/workflows/validate-linux-binaries.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,15 @@ jobs:
8888
export TARGET_OS="linux"
8989
eval "$(conda shell.bash hook)"
9090
printf '%s\n' ${{ toJson(inputs.release-matrix) }} > release_matrix.json
91+
cat release_matrix.json
9192
9293
# Special case PyPi installation package. And Install of PyPi package via poetry
93-
if [[ ${MATRIX_PACKAGE_TYPE} == "manywheel" && ${MATRIX_GPU_ARCH_VERSION} == "12.1" && ${MATRIX_CHANNEL} == "release" ]]; then
94+
if [[ ${MATRIX_PACKAGE_TYPE} == "manywheel" && ${MATRIX_GPU_ARCH_VERSION} == "12.1" ]]; then
9495
source ./.github/scripts/validate_pipy.sh
95-
source ./.github/scripts/validate_poetry.sh
96+
97+
if [[ ${MATRIX_CHANNEL} == "release" ]]; then
98+
source ./.github/scripts/validate_poetry.sh
99+
fi
96100
fi
97101
98102
# Standart case: Validate binaries

0 commit comments

Comments
 (0)