Skip to content

Commit c7f4331

Browse files
authored
Pipy validation workflow (#1507)
1 parent 3145dfa commit c7f4331

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/scripts/validate_pipy.sh

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
conda create -yp ${ENV_NAME}_pypi python=${MATRIX_PYTHON_VERSION} numpy ffmpeg
2-
conda activate ${ENV_NAME}_pypi
32

43
TEST_SUFFIX=""
54
if [[ ${TORCH_ONLY} == 'true' ]]; then
65
TEST_SUFFIX=" --package torchonly"
7-
pip3 install --pre torch --index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
6+
conda run -p ${ENV_NAME}_pypi pip install --pre torch --index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
87
else
98
if [[ ${MATRIX_CHANNEL} != "release" ]]; then
10-
pip3 install --pre torch --index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
11-
pip3 install --pre torchvision torchaudio --index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}"
9+
conda run -p ${ENV_NAME}_pypi pip install --pre torch --index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
10+
conda run -p ${ENV_NAME}_pypi pip install --pre torchvision torchaudio --index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}"
1211
else
13-
pip3 install torch torchvision torchaudio
12+
conda run -p ${ENV_NAME}_pypi pip install torch torchvision torchaudio
1413
fi
1514
fi
1615

17-
python ./test/smoke_test/smoke_test.py ${TEST_SUFFIX} --runtime-error-check disabled
18-
16+
conda run -p ${ENV_NAME}_pypi python ./test/smoke_test/smoke_test.py ${TEST_SUFFIX} --runtime-error-check disabled
1917
conda deactivate
2018
conda env remove -p ${ENV_NAME}_pypi

0 commit comments

Comments
 (0)