From 220c43033de9e1e9b7c8abf17309326473a24146 Mon Sep 17 00:00:00 2001 From: Andrey Talman Date: Mon, 13 Feb 2023 14:58:20 -0500 Subject: [PATCH] Python 3.11 validation workflow tests (#1304) * Test windows py311 * Nightly binaries * Fix py311 tests * fix python calling * Revert "Nightly binaries" This reverts commit cbf80ca5fdb8a2fce5552591ebe0f60dd87d04fe. --- .github/scripts/validate_binaries.sh | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/scripts/validate_binaries.sh b/.github/scripts/validate_binaries.sh index f05d9b20a..f11cd43ab 100755 --- a/.github/scripts/validate_binaries.sh +++ b/.github/scripts/validate_binaries.sh @@ -3,18 +3,13 @@ if [[ ${MATRIX_PACKAGE_TYPE} == "libtorch" ]]; then unzip libtorch.zip else #special case for Python 3.11 - if [ $MATRIX_PYTHON_VERSION == '3.11' ]; then - export CPYTHON_VERSIONS=3.11.0 - sudo yum -y install openssl-devel libssl-dev bzip2-devel libffi-devel - sudo yum -y groupinstall "Development Tools" - export PYTHON_PATH="/opt/_internal/cpython-3.11.0/bin" - export PIP_PATH="${PYTHON_PATH}/pip" - export PIP_INSTALLATION="${MATRIX_INSTALLATION/pip3/"$PIP_PATH"}" - export WITH_OPENSSL="/opt/openssl" - ./common/install_cpython.sh - eval ${PYTHON_PATH}/python --version - eval ${PIP_INSTALLATION} - eval ${PYTHON_PATH}/python ./test/smoke_test/smoke_test.py --package torchonly + 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 + conda deactivate + conda env remove -n ${ENV_NAME} else # Special case Pypi installation package, only applicable to linux nightly CUDA 11.7 builds, wheel package