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
@@ -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
8072 script : |
8173 set -euo pipefail
8274
83- export PYTHON_VERSION=3.8
75+ export PYTHON_VERSION=3.9
8476 export GPU_ARCH_TYPE=cpu
8577 export GPU_ARCH_VERSION=''
8678
0 commit comments