Skip to content

Commit 58b0295

Browse files
authored
[validations] Restrict testing for python 3.8-3.11 (#1659)
1 parent 52259ba commit 58b0295

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/scripts/validate_binaries.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ else
4949
export PATH=${OLD_PATH}
5050
fi
5151

52-
if [[ ${INCLUDE_TEST_OPS} == 'true' && ${MATRIX_GPU_ARCH_TYPE} == 'cuda' ]]; then
52+
# We are only interested in CUDA tests and Python 3.8-3.11. Not all requirement libraries are available for 3.12 yet.
53+
if [[ ${INCLUDE_TEST_OPS} == 'true' && ${MATRIX_GPU_ARCH_TYPE} == 'cuda' && ${MATRIX_PYTHON_VERSION} != "3.12" ]]; then
5354
source ./.github/scripts/validate_test_ops.sh
5455
fi
5556

.github/scripts/validate_test_ops.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ retry git clone ${BRANCH} --depth 1 https://github.com/pytorch/pytorch.git
1818
retry git submodule update --init --recursive
1919
pushd pytorch
2020

21-
pip install expecttest numpy pyyaml jinja2 packaging hypothesis unittest-xml-reporting
21+
pip install expecttest numpy pyyaml jinja2 packaging hypothesis unittest-xml-reporting scipy
2222

2323
# Run test_ops validation
2424
export CUDA_LAUNCH_BLOCKING=1

.github/workflows/validate-linux-binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
ref: ${{ inputs.ref || github.ref }}
9191
job-name: ${{ matrix.build_name }}
9292
binary-matrix: ${{ toJSON(matrix) }}
93-
timeout: 120
93+
timeout: 180
9494
script: |
9595
set -ex
9696
export ENV_NAME="conda-env-${{ github.run_id }}"

0 commit comments

Comments
 (0)