Skip to content

Commit

Permalink
Python 3.11 validation workflow tests (#1304)
Browse files Browse the repository at this point in the history
* Test windows py311

* Nightly binaries

* Fix py311 tests

* fix python calling

* Revert "Nightly binaries"

This reverts commit cbf80ca.
  • Loading branch information
atalman authored Feb 13, 2023
1 parent 6a6fad1 commit 220c430
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/scripts/validate_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 220c430

Please sign in to comment.