Skip to content

Commit 4db3d68

Browse files
authored
Validate pypi build only for release (#1623)
1 parent 0cd5228 commit 4db3d68

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.github/scripts/validate_pipy.sh

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

1111
if [[ ${TORCH_ONLY} == 'true' ]]; then
1212
TEST_SUFFIX=" --package torchonly"
13-
pip3 install --pre torch${RELEASE_SUFFIX} --extra-index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
13+
pip3 install torch${RELEASE_SUFFIX}
1414
else
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
15+
pip3 install torch${RELEASE_SUFFIX} torchvision torchaudio
2116
fi
2217

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

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,9 @@ jobs:
9191
cat release_matrix.json
9292
9393
# Special case PyPi installation package. And Install of PyPi package via poetry
94-
if [[ ${MATRIX_PACKAGE_TYPE} == "manywheel" && ${MATRIX_GPU_ARCH_VERSION} == "12.1" ]]; then
94+
if [[ ${MATRIX_PACKAGE_TYPE} == "manywheel" && ${MATRIX_GPU_ARCH_VERSION} == "12.1" && ${MATRIX_CHANNEL} == "release"]]; then
9595
source ./.github/scripts/validate_pipy.sh
96-
97-
if [[ ${MATRIX_CHANNEL} == "release" ]]; then
98-
source ./.github/scripts/validate_poetry.sh
99-
fi
96+
source ./.github/scripts/validate_poetry.sh
10097
fi
10198
10299
# Standart case: Validate binaries

0 commit comments

Comments
 (0)