Skip to content

Commit 36919cc

Browse files
authored
test (#1617)
1 parent 6b9fca8 commit 36919cc

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

.github/scripts/validate_pipy.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@ conda create -yn ${ENV_NAME}_pypi python=${MATRIX_PYTHON_VERSION} numpy ffmpeg
22
conda activate ${ENV_NAME}_pypi
33

44
TEST_SUFFIX=""
5+
RELEASE_SUFFIX=""
6+
# if RELESE version is passed as parameter - install speific version
7+
if [[ ! -z ${RELEASE_VERSION} ]]; then
8+
RELEASE_SUFFIX="==${RELEASE_VERSION}"
9+
fi
10+
511
if [[ ${TORCH_ONLY} == 'true' ]]; then
612
TEST_SUFFIX=" --package torchonly"
7-
pip3 install --pre torch --extra-index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
13+
pip3 install --pre torch${RELEASE_SUFFIX} --extra-index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
814
else
915
if [[ ${MATRIX_CHANNEL} != "release" ]]; then
10-
pip3 install --pre torch --extra-index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
16+
pip3 install --pre torch${RELEASE_SUFFIX} --extra-index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
1117
pip3 install --pre torchvision torchaudio --extra-index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}"
1218
else
13-
pip3 install torch torchvision torchaudio
19+
pip3 install torch${RELEASE_SUFFIX} torchvision torchaudio
1420
fi
1521
fi
1622

.github/scripts/validate_poetry.sh

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,19 @@ if [[ ${TORCH_ONLY} == 'true' ]]; then
1313
TEST_SUFFIX=" --package torchonly"
1414
fi
1515

16-
if [[ ${MATRIX_CHANNEL} != "release" ]]; then
17-
# Installing poetry from our custom repo. We need to configure it before use and disable authentication
18-
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
19-
poetry source add --priority=explicit domains "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}"
20-
poetry source add --priority=supplemental pytorch-channel "https://download.pytorch.org/whl/${MATRIX_CHANNEL}"
21-
poetry source add --priority=supplemental pytorch "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
22-
poetry --quiet add --source pytorch torch
16+
RELEASE_SUFFIX=""
17+
# if RELESE version is passed as parameter - install speific version
18+
if [[ ! -z ${RELEASE_VERSION} ]]; then
19+
RELEASE_SUFFIX="@${RELEASE_VERSION}"
20+
fi
2321

24-
if [[ ${TORCH_ONLY} != 'true' ]]; then
25-
poetry --quiet add --source domains torchvision torchaudio
26-
fi
22+
# Installing poetry from our custom repo. We need to configure it before use and disable authentication
23+
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
24+
poetry source add --priority=explicit pytorch "https://download.pytorch.org/whl/${MATRIX_DESIRED_CUDA}"
25+
if [[ ${TORCH_ONLY} == 'true' ]]; then
26+
poetry --quiet add torch${RELEASE_SUFFIX}
2727
else
28-
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
29-
poetry source add --priority=explicit pytorch "https://download.pytorch.org/whl/${MATRIX_DESIRED_CUDA}"
30-
if [[ ${TORCH_ONLY} == 'true' ]]; then
31-
poetry --quiet add torch
32-
else
33-
poetry --quiet add --source pytorch torch torchaudio torchvision
34-
fi
28+
poetry --quiet add --source pytorch torch${RELEASE_SUFFIX} torchaudio torchvision
3529
fi
3630

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

.github/workflows/validate-binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
ref: ${{ inputs.ref || github.ref }}
115115
torchonly: ${{ inputs.torchonly }}
116116
version: ${{ inputs.version }}
117-
release-matrix: ${{ needs.generate-rlease-matrix.outputs.matrix }}
117+
release-matrix: ${{ needs.generate-release-matrix.outputs.matrix }}
118118

119119
mac-arm64:
120120
if: inputs.os == 'macos' || inputs.os == 'all'

0 commit comments

Comments
 (0)