File tree 2 files changed +18
-6
lines changed 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,32 @@ poetry --version
8
8
poetry new test_poetry
9
9
cd test_poetry
10
10
11
+ TEST_SUFFIX=" "
12
+ if [[ ${TORCH_ONLY} == ' true' ]]; then
13
+ TEST_SUFFIX=" --package torchonly"
14
+ else
15
+
11
16
if [[ ${MATRIX_CHANNEL} != " release" ]]; then
12
17
# Installing poetry from our custom repo. We need to configure it before use and disable authentication
13
18
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
14
19
poetry source add --priority=explicit domains " https://download.pytorch.org/whl/${MATRIX_CHANNEL} /${MATRIX_DESIRED_CUDA} "
15
- poetry source add --priority=supplemental pytorch-nightly " https://download.pytorch.org/whl/${MATRIX_CHANNEL} "
20
+ poetry source add --priority=supplemental pytorch-channel " https://download.pytorch.org/whl/${MATRIX_CHANNEL} "
16
21
poetry source add --priority=supplemental pytorch " https://download.pytorch.org/whl/${MATRIX_CHANNEL} /${MATRIX_DESIRED_CUDA} _pypi_cudnn"
17
22
poetry --quiet add --source pytorch torch
18
- poetry --quiet add --source domains torchvision torchaudio
23
+
24
+ if [[ ${TORCH_ONLY} != ' true' ]]; then
25
+ poetry --quiet add --source domains torchvision torchaudio
26
+ fi
19
27
else
20
28
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
21
- poetry --quiet add torch torchaudio torchvision
29
+ if [[ ${TORCH_ONLY} == ' true' ]]; then
30
+ poetry --quiet add torch
31
+ else
32
+ poetry --quiet add torch torchaudio torchvision
33
+ fi
22
34
fi
23
35
24
- python ../test/smoke_test/smoke_test.py
36
+ python ../test/smoke_test/smoke_test.py ${TEST_SUFFIX} --runtime-error-check disabled
25
37
conda deactivate
26
38
conda env remove -p ${ENV_NAME} _poetry
27
39
cd ..
Original file line number Diff line number Diff line change 71
71
if [[ ${MATRIX_PACKAGE_TYPE} == "manywheel" ]] && \
72
72
([[ ${MATRIX_GPU_ARCH_VERSION} == "12.1" && ${MATRIX_CHANNEL} != "release" ]] || \
73
73
[[ ${MATRIX_GPU_ARCH_VERSION} == "11.7" && ${MATRIX_CHANNEL} == "release" ]]); then
74
- source ./.github/scripts/validate_pipy.sh --runtime-error-check disabled
74
+ source ./.github/scripts/validate_pipy.sh
75
75
# temporary disable poetry check
76
- # source ./.github/scripts/validate_poetry.sh --runtime-error-check disabled
76
+ source ./.github/scripts/validate_poetry.sh
77
77
fi
78
78
79
79
# Standart case: Validate binaries
You can’t perform that action at this time.
0 commit comments