@@ -112,7 +112,7 @@ jobs:
112
112
shell : bash -l {0}
113
113
run : |
114
114
conda init bash
115
- conda create -y --name wheel_build_env python=${{ matrix.python-version }}
115
+ conda create -y --name wheel_build_env_${{ matrix.python-version }} python=${{ matrix.python-version }}
116
116
- name : Setup msbuild on Windows
117
117
if : startsWith( matrix.os, 'windows' )
118
118
@@ -137,7 +137,7 @@ jobs:
137
137
fi
138
138
else
139
139
if ${{ startsWith( matrix.os, 'macos' ) }}; then
140
- conda activate wheel_build_env
140
+ conda activate wheel_build_env_${{ matrix.python-version }}
141
141
fi
142
142
pip install cmake ninja
143
143
echo "/home/runner/.local/bin" >> $GITHUB_PATH
@@ -169,8 +169,8 @@ jobs:
169
169
fi
170
170
fi
171
171
if ${{ startsWith( matrix.os, 'macos' ) }}; then
172
- conda activate wheel_build_env
173
- conda run -n wheel_build_env packaging/build_wheel.sh
172
+ conda activate wheel_build_env_${{ matrix.python-version }}
173
+ conda run -n wheel_build_env_${{ matrix.python-version }} packaging/build_wheel.sh
174
174
else
175
175
packaging/build_wheel.sh
176
176
fi
@@ -187,7 +187,7 @@ jobs:
187
187
pip3 install auditwheel
188
188
fi
189
189
if ${{ startsWith( matrix.os, 'macos' ) }}; then
190
- conda activate wheel_build_env
190
+ conda activate wheel_build_env_${{ matrix.python-version }}
191
191
fi
192
192
pip3 install pkginfo
193
193
for pkg in dist/torchdata*.whl; do
@@ -214,8 +214,8 @@ jobs:
214
214
source packaging/manylinux/python_helper.sh
215
215
fi
216
216
if ${{ startsWith( matrix.os, 'macos' ) }}; then
217
- conda activate wheel_build_env
218
- conda run -n wheel_build_env pip3 install dist/torchdata*.whl
217
+ conda activate wheel_build_env_${{ matrix.python-version }}
218
+ conda run -n wheel_build_env_${{ matrix.python-version }} pip3 install dist/torchdata*.whl
219
219
else
220
220
pip3 install dist/torchdata*.whl
221
221
fi
@@ -231,8 +231,8 @@ jobs:
231
231
source packaging/manylinux/python_helper.sh
232
232
fi
233
233
if ${{ startsWith( matrix.os, 'macos' ) }}; then
234
- conda activate wheel_build_env
235
- conda run -n wheel_build_env python test/smoke_test/smoke_test.py
234
+ conda activate wheel_build_env_${{ matrix.python-version }}
235
+ conda run -n wheel_build_env_${{ matrix.python-version }} python test/smoke_test/smoke_test.py
236
236
else
237
237
if ${{ matrix.python-version == 'pure' }}; then
238
238
python test/smoke_test/smoke_test.py --no-s3
0 commit comments