Skip to content

Commit a1fcf27

Browse files
authored
Fix smoke test path in Windows binary build workflow (#5726)
The smoke test is different with previously steps, which not set working-directory as ${{ inputs.repository }} Works for pytorch/pytorch#114850
1 parent 59ee6d8 commit a1fcf27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ jobs:
202202
${CONDA_RUN} pip install "${{ inputs.repository }}/dist/$WHEEL_NAME"
203203
if [[ ! -f "${{ inputs.repository }}"/${SMOKE_TEST_SCRIPT} ]]; then
204204
echo "${{ inputs.repository }}/${SMOKE_TEST_SCRIPT} not found"
205-
${CONDA_RUN} ${ENV_SCRIPT} python -c "import ${PACKAGE_NAME}; print('package version is ', ${PACKAGE_NAME}.__version__)"
205+
${CONDA_RUN} "${{ inputs.repository }}/${ENV_SCRIPT}" python -c "import ${PACKAGE_NAME}; print('package version is ', ${PACKAGE_NAME}.__version__)"
206206
else
207207
echo "${{ inputs.repository }}/${SMOKE_TEST_SCRIPT} found"
208-
${CONDA_RUN} ${ENV_SCRIPT} python "${{ inputs.repository }}/${SMOKE_TEST_SCRIPT}"
208+
${CONDA_RUN} "${{ inputs.repository }}/${ENV_SCRIPT}" python "${{ inputs.repository }}/${SMOKE_TEST_SCRIPT}"
209209
fi
210210
# NB: Only upload to GitHub after passing smoke tests
211211
- name: Upload wheel to GitHub

0 commit comments

Comments
 (0)