Skip to content

Commit ccbfd40

Browse files
authored
Pipy validation workflow (#1508)
1 parent c7f4331 commit ccbfd40

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/scripts/validate_pipy.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
conda create -yp ${ENV_NAME}_pypi python=${MATRIX_PYTHON_VERSION} numpy ffmpeg
1+
conda create -yn ${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 pip 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 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}"
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 pip 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
1718
conda deactivate
1819
conda env remove -p ${ENV_NAME}_pypi

0 commit comments

Comments
 (0)