1111
1212jobs :
1313 python-source-and-configs :
14- uses : pytorch/test-infra/.github/workflows/linux_job .yml@main
14+ uses : pytorch/test-infra/.github/workflows/linux_job_v2 .yml@main
1515 with :
1616 repository : pytorch/vision
1717 test-infra-ref : main
2121 echo '::group::Setup environment'
2222 CONDA_PATH=$(which conda)
2323 eval "$(${CONDA_PATH} shell.bash hook)"
24- conda create --name ci --quiet --yes python=3.8 pip
24+ conda create --name ci --quiet --yes python=3.9 pip
2525 conda activate ci
2626 echo '::endgroup::'
2727
3838 fi
3939
4040 c-source :
41- uses : pytorch/test-infra/.github/workflows/linux_job .yml@main
41+ uses : pytorch/test-infra/.github/workflows/linux_job_v2 .yml@main
4242 with :
4343 repository : pytorch/vision
4444 test-infra-ref : main
@@ -48,22 +48,14 @@ jobs:
4848 echo '::group::Setup environment'
4949 CONDA_PATH=$(which conda)
5050 eval "$(${CONDA_PATH} shell.bash hook)"
51- # clang-format needs some shared libraries that conflict with the system ones. Thus, we install them from conda
52- # and prepend the libraries to linker path to prioritize them. `ncurses=5` is only available on the conda-forge
53- # channel. Since we are not building or testing here, this is fine.
54- conda create --name ci --quiet --yes -c conda-forge python=3.8 ncurses=5 libgcc
51+ conda create --name ci --quiet --yes -c conda-forge python=3.9 clang-format
5552 conda activate ci
56- export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}"
5753 echo '::endgroup::'
5854
59- echo '::group::Install lint tools'
60- curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o ./clang-format
61- chmod +x ./clang-format
62- echo '::endgroup::'
6355
6456 echo '::group::Lint C source'
6557 set +e
66- ./.github/scripts/run-clang-format.py -r torchvision/csrc --clang-format-executable ./clang-format -- exclude "torchvision/csrc/io/image/cpu/giflib/*"
58+ ./.github/scripts/run-clang-format.py -r torchvision/csrc --exclude "torchvision/csrc/io/image/cpu/giflib/*"
6759
6860 if [ $? -ne 0 ]; then
6961 git --no-pager diff
@@ -73,14 +65,14 @@ jobs:
7365
7466
7567 python-types :
76- uses : pytorch/test-infra/.github/workflows/linux_job .yml@main
68+ uses : pytorch/test-infra/.github/workflows/linux_job_v2 .yml@main
7769 with :
7870 repository : pytorch/vision
7971 test-infra-ref : main
8072 script : |
8173 set -euo pipefail
8274
83- export PYTHON_VERSION=3.8
75+ export PYTHON_VERSION=3.11
8476 export GPU_ARCH_TYPE=cpu
8577 export GPU_ARCH_VERSION=''
8678
9183 conda activate ci
9284
9385 echo '::group::Install lint tools'
94- pip install --progress-bar=off mypy
86+ pip install --progress-bar=off " mypy==1.13.0"
9587 echo '::endgroup::'
9688
9789 echo '::group::Lint Python types'
0 commit comments