File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 15
15
eval ${PIP_INSTALLATION}
16
16
eval ${PYTHON_PATH} /python ./test/smoke_test/smoke_test.py --package torchonly
17
17
else
18
+ conda create -y -n ${ENV_NAME} python=${MATRIX_PYTHON_VERSION} numpy pillow
19
+ conda activate ${ENV_NAME}
20
+ INSTALLATION=${MATRIX_INSTALLATION/ " conda install" / " conda install -y" }
21
+ eval $INSTALLATION
22
+
18
23
if [[ ${TARGET_OS} == ' linux' ]]; then
19
24
export CONDA_LIBRARY_PATH=" $( dirname $( which python) ) /../lib"
20
25
export LD_LIBRARY_PATH=$CONDA_LIBRARY_PATH :$LD_LIBRARY_PATH
21
26
${PWD} /check_binary.sh
22
27
fi
23
28
24
- conda create -y -n ${ENV_NAME} python=${MATRIX_PYTHON_VERSION} numpy pillow
25
- conda activate ${ENV_NAME}
26
- INSTALLATION=${MATRIX_INSTALLATION/ " conda install" / " conda install -y" }
27
- eval $INSTALLATION
28
29
python ./test/smoke_test/smoke_test.py
29
30
fi
30
31
fi
Original file line number Diff line number Diff line change 89
89
script : |
90
90
set -ex
91
91
export ENV_NAME="conda-env-${{ github.run_id }}"
92
- export DESIRED_PYTHON="${{ matrix.python_version }}"
93
- export PACKAGE_TYPE="${{ matrix.package_type }}"
94
- export CHANNEL="${{ matrix.channel }}"
95
92
export SMOKE_TEST="${{ inputs.smoke_test }}"
96
- export GPU_ARCH_VER="${{ matrix.gpu_arch_version }}"
97
- export GPU_ARCH_TYPE="${{ matrix.gpu_arch_type }}"
98
- export DESIRED_CUDA="${{ matrix.desired_cuda }}"
99
93
eval $SMOKE_TEST
100
94
validate-windows :
101
95
if : (inputs.os == 'windows' || inputs.os == 'all')
@@ -113,13 +107,7 @@ jobs:
113
107
script : |
114
108
set -ex
115
109
export ENV_NAME="conda-env-${{ github.run_id }}"
116
- export DESIRED_PYTHON="${{ matrix.python_version }}"
117
- export PACKAGE_TYPE="${{ matrix.package_type }}"
118
- export CHANNEL="${{ matrix.channel }}"
119
110
export SMOKE_TEST="${{ inputs.smoke_test }}"
120
- export GPU_ARCH_VER="${{ matrix.gpu_arch_version }}"
121
- export GPU_ARCH_TYPE="${{ matrix.gpu_arch_type }}"
122
- export DESIRED_CUDA="${{ matrix.desired_cuda }}"
123
111
export TARGET_OS="windows"
124
112
eval $SMOKE_TEST
125
113
validate-macos :
@@ -139,6 +127,7 @@ jobs:
139
127
set -ex
140
128
export ENV_NAME="conda-env-${{ github.run_id }}"
141
129
export TARGET_OS="macos"
130
+ export SMOKE_TEST="${{ inputs.smoke_test }}"
142
131
source $SMOKE_TEST
143
132
validate-macos-arm64 :
144
133
if : (inputs.os == 'macos-arm64' || inputs.os == 'all')
You can’t perform that action at this time.
0 commit comments