Skip to content

Commit ee2761f

Browse files
committed
Test windows py311
1 parent b7c47c5 commit ee2761f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/scripts/validate_binaries.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ 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
6+
if [ $MATRIX_PYTHON_VERSION == '3.11' && ${TARGET_OS} != 'windows']; then
77
export CPYTHON_VERSIONS=3.11.0
88
sudo yum -y install openssl-devel libssl-dev bzip2-devel libffi-devel
99
sudo yum -y groupinstall "Development Tools"
@@ -15,6 +15,12 @@ else
1515
eval ${PYTHON_PATH}/python --version
1616
eval ${PIP_INSTALLATION}
1717
eval ${PYTHON_PATH}/python ./test/smoke_test/smoke_test.py --package torchonly
18+
#special case for Python 3.11
19+
elif [ $MATRIX_PYTHON_VERSION == '3.11' && ${TARGET_OS} == 'windows']; then
20+
conda create -y -n ${ENV_NAME} python=${MATRIX_PYTHON_VERSION}
21+
conda activate ${ENV_NAME}
22+
eval $MATRIX_INSTALLATION
23+
eval ${PYTHON_PATH}/python ./test/smoke_test/smoke_test.py --package torchonly
1824
else
1925

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

0 commit comments

Comments
 (0)