Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 3145dfa

Browse files
authored
Pipy validation workflow (#1506)
1 parent 3c2d43c commit 3145dfa

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/scripts/validate_pipy.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
conda create -yp ${ENV_NAME}_pypi python=${MATRIX_PYTHON_VERSION} numpy ffmpeg
2+
conda activate ${ENV_NAME}_pypi
23

34
TEST_SUFFIX=""
45
if [[ ${TORCH_ONLY} == 'true' ]]; then
56
TEST_SUFFIX=" --package torchonly"
6-
conda run -p ${ENV_NAME}_pypi pip3 install --pre torch --index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
7+
pip3 install --pre torch --index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
78
else
89
if [[ ${MATRIX_CHANNEL} != "release" ]]; then
9-
conda run -p ${ENV_NAME}_pypi pip3 install --pre torch --index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}_pypi_cudnn"
10-
conda run -p ${ENV_NAME}_pypi pip3 install --pre torchvision torchaudio --index-url "https://download.pytorch.org/whl/${MATRIX_CHANNEL}/${MATRIX_DESIRED_CUDA}"
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}"
1112
else
12-
conda run -p ${ENV_NAME}_pypi pip3 install torch torchvision torchaudio
13+
pip3 install torch torchvision torchaudio
1314
fi
1415
fi
1516

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

0 commit comments

Comments
 (0)