diff --git a/.github/scripts/validate_binaries.sh b/.github/scripts/validate_binaries.sh index f11cd43ab..cfe7c4486 100755 --- a/.github/scripts/validate_binaries.sh +++ b/.github/scripts/validate_binaries.sh @@ -6,8 +6,13 @@ else if [[ ${MATRIX_PYTHON_VERSION} == '3.11' ]]; then conda create -y -n ${ENV_NAME} python=${MATRIX_PYTHON_VERSION} conda activate ${ENV_NAME} - eval $MATRIX_INSTALLATION - python ./test/smoke_test/smoke_test.py --package torchonly + + INSTALLATION=${MATRIX_INSTALLATION/"-c pytorch"/"-c malfet -c pytorch"} + INSTALLATION=${INSTALLATION/"pytorch-cuda"/"pytorch-${MATRIX_CHANNEL}::pytorch-cuda"} + INSTALLATION=${INSTALLATION/"conda install"/"conda install -y"} + + eval $INSTALLATION + python ./test/smoke_test/smoke_test.py conda deactivate conda env remove -n ${ENV_NAME} else diff --git a/.github/workflows/validate-release-binaries.yml b/.github/workflows/validate-release-binaries.yml index c0e239d03..9549e1e33 100644 --- a/.github/workflows/validate-release-binaries.yml +++ b/.github/workflows/validate-release-binaries.yml @@ -17,14 +17,6 @@ on: - .github/workflows/validate-macos-binaries.yml - .github/workflows/validate-macos-arm64-binaries.yml - test/smoke_test/* - pull_request: - paths: - - .github/workflows/validate-release-binaries.yml - - .github/workflows/validate-linux-binaries.yml - - .github/workflows/validate-windows-binaries.yml - - .github/workflows/validate-macos-binaries.yml - - .github/workflows/validate-macos-arm64-binaries.yml - - test/smoke_test/* jobs: release: