Skip to content

Commit 220c430

Browse files
authored
Python 3.11 validation workflow tests (#1304)
* Test windows py311 * Nightly binaries * Fix py311 tests * fix python calling * Revert "Nightly binaries" This reverts commit cbf80ca.
1 parent 6a6fad1 commit 220c430

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/scripts/validate_binaries.sh

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@ if [[ ${MATRIX_PACKAGE_TYPE} == "libtorch" ]]; then
33
unzip libtorch.zip
44
else
55
#special case for Python 3.11
6-
if [ $MATRIX_PYTHON_VERSION == '3.11' ]; then
7-
export CPYTHON_VERSIONS=3.11.0
8-
sudo yum -y install openssl-devel libssl-dev bzip2-devel libffi-devel
9-
sudo yum -y groupinstall "Development Tools"
10-
export PYTHON_PATH="/opt/_internal/cpython-3.11.0/bin"
11-
export PIP_PATH="${PYTHON_PATH}/pip"
12-
export PIP_INSTALLATION="${MATRIX_INSTALLATION/pip3/"$PIP_PATH"}"
13-
export WITH_OPENSSL="/opt/openssl"
14-
./common/install_cpython.sh
15-
eval ${PYTHON_PATH}/python --version
16-
eval ${PIP_INSTALLATION}
17-
eval ${PYTHON_PATH}/python ./test/smoke_test/smoke_test.py --package torchonly
6+
if [[ ${MATRIX_PYTHON_VERSION} == '3.11' ]]; then
7+
conda create -y -n ${ENV_NAME} python=${MATRIX_PYTHON_VERSION}
8+
conda activate ${ENV_NAME}
9+
eval $MATRIX_INSTALLATION
10+
python ./test/smoke_test/smoke_test.py --package torchonly
11+
conda deactivate
12+
conda env remove -n ${ENV_NAME}
1813
else
1914

2015
# Special case Pypi installation package, only applicable to linux nightly CUDA 11.7 builds, wheel package

0 commit comments

Comments
 (0)