@@ -13,6 +13,10 @@ inputs:
13
13
description : ' Installation instructions'
14
14
required : true
15
15
default : ' '
16
+ installation_pypi :
17
+ description : ' Installation instructions for pypi'
18
+ required : false
19
+ default : ' '
16
20
python_version :
17
21
description : ' Python version'
18
22
required : true
@@ -60,13 +64,16 @@ runs:
60
64
GPU_ARCH_VER : ${{ inputs.gpu_arch_ver }}
61
65
GPU_ARCH_TYPE : ${{ inputs.gpu_arch_type }}
62
66
INSTALLATION : ${{ inputs.installation }}
67
+ INSTALLATION_PYPI : ${{ inputs.installation_pypi }}
63
68
ENV_NAME : conda-env-${{ github.run_id }}
64
69
DESIRED_PYTHON : ${{ inputs.python_version }}
65
70
DESIRED_CUDA : ${{ inputs.desired_cuda }}
66
71
DESIRED_DEVTOOLSET : ${{ inputs.dev_toolset }}
67
72
PACKAGE_TYPE : ${{ inputs.package_type }}
73
+ TARGET_OS : ${{ inputs.target_os }}
68
74
run : |
69
75
76
+ # Special case Python 3.11 wheels
70
77
if [ $DESIRED_PYTHON == '3.11' ]; then
71
78
set -ex
72
79
export CPYTHON_VERSIONS=3.11.0
84
91
eval ${PYTHON_PATH}/python ./test/smoke_test/smoke_test.py --package torchonly
85
92
else
86
93
set -ex
94
+
95
+ # Special case Pypi installation instructions
96
+ if [ ! -z "${INSTALLATION_PYPI}" ]; then
97
+ conda create -yp ${ENV_NAME}_pypi python=${{ inputs.python_version }} numpy
98
+ conda run -p ${ENV_NAME}_pypi $INSTALLATION_PYPI
99
+ conda run -p ${ENV_NAME}_pypi python3 ./test/smoke_test/smoke_test.py --package torchonly
100
+ conda env remove -p ${ENV_NAME}_pypi
101
+ fi
102
+
87
103
conda create -yp ${ENV_NAME} python=${{ inputs.python_version }} numpy
88
104
conda run -p ${ENV_NAME} $INSTALLATION
89
105
conda run -p ${ENV_NAME} python3 ./test/smoke_test/smoke_test.py
0 commit comments