Unverified Commit ab6f1ede authored by Huy Do's avatar Huy Do Committed by GitHub
Browse files

[Release-Only] Branch Cut - Bump vision Version 0.16.0 (#7913)

parent f1b4c7a6
...@@ -20,7 +20,7 @@ jobs: ...@@ -20,7 +20,7 @@ jobs:
gpu-arch-type: cuda gpu-arch-type: cuda
gpu-arch-version: "11.8" gpu-arch-version: "11.8"
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
...@@ -42,7 +42,7 @@ jobs: ...@@ -42,7 +42,7 @@ jobs:
- runner: macos-12 - runner: macos-12
- runner: macos-m1-12 - runner: macos-m1-12
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
...@@ -65,7 +65,7 @@ jobs: ...@@ -65,7 +65,7 @@ jobs:
gpu-arch-type: cuda gpu-arch-type: cuda
gpu-arch-version: "11.8" gpu-arch-version: "11.8"
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.1
with: with:
package-type: conda package-type: conda
os: linux os: linux
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -34,13 +34,13 @@ jobs: ...@@ -34,13 +34,13 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@main uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@release/2.1
with: with:
conda-package-directory: ${{ matrix.conda-package-directory }} conda-package-directory: ${{ matrix.conda-package-directory }}
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.1
with: with:
package-type: conda package-type: conda
os: macos-arm64 os: macos-arm64
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -34,13 +34,13 @@ jobs: ...@@ -34,13 +34,13 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@main uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@release/2.1
with: with:
conda-package-directory: ${{ matrix.conda-package-directory }} conda-package-directory: ${{ matrix.conda-package-directory }}
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.1
with: with:
package-type: conda package-type: conda
os: macos os: macos
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -34,13 +34,13 @@ jobs: ...@@ -34,13 +34,13 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@main uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@release/2.1
with: with:
conda-package-directory: ${{ matrix.conda-package-directory }} conda-package-directory: ${{ matrix.conda-package-directory }}
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.1
with: with:
package-type: conda package-type: conda
os: windows os: windows
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -34,13 +34,13 @@ jobs: ...@@ -34,13 +34,13 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_conda_windows.yml@main uses: pytorch/test-infra/.github/workflows/build_conda_windows.yml@release/2.1
with: with:
conda-package-directory: ${{ matrix.conda-package-directory }} conda-package-directory: ${{ matrix.conda-package-directory }}
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.1
with: with:
package-type: wheel package-type: wheel
os: linux-aarch64 os: linux-aarch64
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
with-cuda: disable with-cuda: disable
build: build:
needs: generate-matrix needs: generate-matrix
...@@ -34,12 +34,12 @@ jobs: ...@@ -34,12 +34,12 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.1
with: with:
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.1
with: with:
package-type: wheel package-type: wheel
os: linux os: linux
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -33,12 +33,12 @@ jobs: ...@@ -33,12 +33,12 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.1
with: with:
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.1
with: with:
package-type: wheel package-type: wheel
os: macos-arm64 os: macos-arm64
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -33,12 +33,12 @@ jobs: ...@@ -33,12 +33,12 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.1
with: with:
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.1
with: with:
package-type: wheel package-type: wheel
os: macos os: macos
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -33,12 +33,12 @@ jobs: ...@@ -33,12 +33,12 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.1
with: with:
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }} post-script: ${{ matrix.post-script }}
......
...@@ -15,12 +15,12 @@ on: ...@@ -15,12 +15,12 @@ on:
jobs: jobs:
generate-matrix: generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.1
with: with:
package-type: wheel package-type: wheel
os: windows os: windows
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build: build:
needs: generate-matrix needs: generate-matrix
strategy: strategy:
...@@ -34,12 +34,12 @@ jobs: ...@@ -34,12 +34,12 @@ jobs:
smoke-test-script: test/smoke_test.py smoke-test-script: test/smoke_test.py
package-name: torchvision package-name: torchvision
name: ${{ matrix.repository }} name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@release/2.1
with: with:
repository: ${{ matrix.repository }} repository: ${{ matrix.repository }}
ref: "" ref: ""
test-infra-repository: pytorch/test-infra test-infra-repository: pytorch/test-infra
test-infra-ref: main test-infra-ref: release/2.1
build-matrix: ${{ needs.generate-matrix.outputs.matrix }} build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }} pre-script: ${{ matrix.pre-script }}
env-script: ${{ matrix.env-script }} env-script: ${{ matrix.env-script }}
......
...@@ -14,7 +14,7 @@ on: ...@@ -14,7 +14,7 @@ on:
jobs: jobs:
build: build:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
upload-artifact: docs upload-artifact: docs
...@@ -25,7 +25,7 @@ jobs: ...@@ -25,7 +25,7 @@ jobs:
export GPU_ARCH_TYPE=cpu export GPU_ARCH_TYPE=cpu
export GPU_ARCH_VERSION='' export GPU_ARCH_VERSION=''
./.github/scripts/setup-env.sh ./.github/scripts/setup-env.sh
# Prepare conda # Prepare conda
CONDA_PATH=$(which conda) CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)" eval "$(${CONDA_PATH} shell.bash hook)"
...@@ -36,13 +36,13 @@ jobs: ...@@ -36,13 +36,13 @@ jobs:
# Should we maybe always do this in `./.github/scripts/setup-env.sh` so that we don't # Should we maybe always do this in `./.github/scripts/setup-env.sh` so that we don't
# have to pay attention in all other workflows? # have to pay attention in all other workflows?
export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}" export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}"
cd docs cd docs
echo '::group::Install doc requirements' echo '::group::Install doc requirements'
pip install --progress-bar=off -r requirements.txt pip install --progress-bar=off -r requirements.txt
echo '::endgroup::' echo '::endgroup::'
if [[ ${{ github.event_name }} == push && (${{ github.ref_type }} == tag || (${{ github.ref_type }} == branch && ${{ github.ref_name }} == release/*)) ]]; then if [[ ${{ github.event_name }} == push && (${{ github.ref_type }} == tag || (${{ github.ref_type }} == branch && ${{ github.ref_name }} == release/*)) ]]; then
echo '::group::Enable version string sanitization' echo '::group::Enable version string sanitization'
# This environment variable just has to exist and must not be empty. The actual value is arbitrary. # This environment variable just has to exist and must not be empty. The actual value is arbitrary.
...@@ -66,9 +66,9 @@ jobs: ...@@ -66,9 +66,9 @@ jobs:
cp $file build/html/_generated_ipynb_notebooks/ cp $file build/html/_generated_ipynb_notebooks/
fi fi
done done
cp -r build/html "${RUNNER_ARTIFACT_DIR}" cp -r build/html "${RUNNER_ARTIFACT_DIR}"
# On PRs we also want to upload the docs into our S3 bucket for preview. # On PRs we also want to upload the docs into our S3 bucket for preview.
if [[ ${{ github.event_name == 'pull_request' }} ]]; then if [[ ${{ github.event_name == 'pull_request' }} ]]; then
cp -r build/html/* "${RUNNER_DOCS_DIR}" cp -r build/html/* "${RUNNER_DOCS_DIR}"
...@@ -80,14 +80,14 @@ jobs: ...@@ -80,14 +80,14 @@ jobs:
((github.ref_type == 'branch' && github.ref_name == 'main') || github.ref_type == 'tag') ((github.ref_type == 'branch' && github.ref_name == 'main') || github.ref_type == 'tag')
permissions: permissions:
contents: write contents: write
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
download-artifact: docs download-artifact: docs
ref: gh-pages ref: gh-pages
script: | script: |
set -euo pipefail set -euo pipefail
REF_TYPE=${{ github.ref_type }} REF_TYPE=${{ github.ref_type }}
REF_NAME=${{ github.ref_name }} REF_NAME=${{ github.ref_name }}
...@@ -112,14 +112,14 @@ jobs: ...@@ -112,14 +112,14 @@ jobs:
rm -rf "${TARGET_FOLDER}"/* rm -rf "${TARGET_FOLDER}"/*
mv "${RUNNER_ARTIFACT_DIR}"/html/* "${TARGET_FOLDER}" mv "${RUNNER_ARTIFACT_DIR}"/html/* "${TARGET_FOLDER}"
git add "${TARGET_FOLDER}" || true git add "${TARGET_FOLDER}" || true
if [[ "${TARGET_FOLDER}" == main ]]; then if [[ "${TARGET_FOLDER}" == main ]]; then
mkdir -p _static mkdir -p _static
rm -rf _static/* rm -rf _static/*
cp -r "${TARGET_FOLDER}"/_static/* _static cp -r "${TARGET_FOLDER}"/_static/* _static
git add _static || true git add _static || true
fi fi
git config user.name 'pytorchbot' git config user.name 'pytorchbot'
git config user.email 'soumith+bot@pytorch.org' git config user.email 'soumith+bot@pytorch.org'
git config http.postBuffer 524288000 git config http.postBuffer 524288000
......
...@@ -11,7 +11,7 @@ on: ...@@ -11,7 +11,7 @@ on:
jobs: jobs:
python-source-and-configs: python-source-and-configs:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
script: | script: |
...@@ -23,26 +23,26 @@ jobs: ...@@ -23,26 +23,26 @@ jobs:
conda create --name ci --quiet --yes python=3.8 pip conda create --name ci --quiet --yes python=3.8 pip
conda activate ci conda activate ci
echo '::endgroup::' echo '::endgroup::'
echo '::group::Install lint tools' echo '::group::Install lint tools'
pip install --progress-bar=off pre-commit pip install --progress-bar=off pre-commit
echo '::endgroup::' echo '::endgroup::'
set +e set +e
pre-commit run --all-files pre-commit run --all-files
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
git --no-pager diff git --no-pager diff
exit 1 exit 1
fi fi
c-source: c-source:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
script: | script: |
set -euo pipefail set -euo pipefail
echo '::group::Setup environment' echo '::group::Setup environment'
CONDA_PATH=$(which conda) CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)" eval "$(${CONDA_PATH} shell.bash hook)"
...@@ -53,7 +53,7 @@ jobs: ...@@ -53,7 +53,7 @@ jobs:
conda activate ci conda activate ci
export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}" export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}"
echo '::endgroup::' echo '::endgroup::'
echo '::group::Install lint tools' echo '::group::Install lint tools'
curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o ./clang-format curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o ./clang-format
chmod +x ./clang-format chmod +x ./clang-format
...@@ -62,35 +62,34 @@ jobs: ...@@ -62,35 +62,34 @@ jobs:
echo '::group::Lint C source' echo '::group::Lint C source'
set +e set +e
./.github/scripts/run-clang-format.py -r torchvision/csrc --clang-format-executable ./clang-format ./.github/scripts/run-clang-format.py -r torchvision/csrc --clang-format-executable ./clang-format
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
git --no-pager diff git --no-pager diff
exit 1 exit 1
fi fi
echo '::endgroup::' echo '::endgroup::'
python-types: python-types:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
script: | script: |
set -euo pipefail set -euo pipefail
export PYTHON_VERSION=3.8 export PYTHON_VERSION=3.8
export GPU_ARCH_TYPE=cpu export GPU_ARCH_TYPE=cpu
export GPU_ARCH_VERSION='' export GPU_ARCH_VERSION=''
./.github/scripts/setup-env.sh ./.github/scripts/setup-env.sh
CONDA_PATH=$(which conda) CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)" eval "$(${CONDA_PATH} shell.bash hook)"
conda activate ci conda activate ci
echo '::group::Install lint tools' echo '::group::Install lint tools'
pip install --progress-bar=off mypy pip install --progress-bar=off mypy
echo '::endgroup::' echo '::endgroup::'
echo '::group::Lint Python types' echo '::group::Lint Python types'
mypy --install-types --non-interactive --config-file mypy.ini mypy --install-types --non-interactive --config-file mypy.ini
echo '::endgroup::' echo '::endgroup::'
...@@ -100,7 +99,7 @@ jobs: ...@@ -100,7 +99,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Run BC Lint Action - name: Run BC Lint Action
uses: pytorch/test-infra/.github/actions/bc-lint@main uses: pytorch/test-infra/.github/actions/bc-lint@release/2.1
with: with:
repo: ${{ github.event.pull_request.head.repo.full_name }} repo: ${{ github.event.pull_request.head.repo.full_name }}
base_sha: ${{ github.event.pull_request.base.sha }} base_sha: ${{ github.event.pull_request.base.sha }}
......
...@@ -20,7 +20,7 @@ jobs: ...@@ -20,7 +20,7 @@ jobs:
gpu-arch-type: cuda gpu-arch-type: cuda
gpu-arch-version: "11.8" gpu-arch-version: "11.8"
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
...@@ -34,7 +34,7 @@ jobs: ...@@ -34,7 +34,7 @@ jobs:
export GPU_ARCH_TYPE=${{ matrix.gpu-arch-type }} export GPU_ARCH_TYPE=${{ matrix.gpu-arch-type }}
export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }} export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }}
./.github/scripts/setup-env.sh ./.github/scripts/setup-env.sh
# Prepare conda # Prepare conda
CONDA_PATH=$(which conda) CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)" eval "$(${CONDA_PATH} shell.bash hook)"
......
...@@ -26,7 +26,7 @@ jobs: ...@@ -26,7 +26,7 @@ jobs:
gpu-arch-type: cuda gpu-arch-type: cuda
gpu-arch-version: "11.8" gpu-arch-version: "11.8"
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
...@@ -41,7 +41,7 @@ jobs: ...@@ -41,7 +41,7 @@ jobs:
export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }} export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }}
./.github/scripts/unittest.sh ./.github/scripts/unittest.sh
unittests-macos: unittests-macos:
strategy: strategy:
matrix: matrix:
...@@ -55,7 +55,7 @@ jobs: ...@@ -55,7 +55,7 @@ jobs:
- python-version: "3.8" - python-version: "3.8"
runner: macos-m1-12 runner: macos-m1-12
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
# We need an increased timeout here, since the macos-12 runner is the free one from GH # We need an increased timeout here, since the macos-12 runner is the free one from GH
...@@ -87,7 +87,7 @@ jobs: ...@@ -87,7 +87,7 @@ jobs:
gpu-arch-type: cuda gpu-arch-type: cuda
gpu-arch-version: "11.8" gpu-arch-version: "11.8"
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
runner: ${{ matrix.runner }} runner: ${{ matrix.runner }}
...@@ -102,11 +102,11 @@ jobs: ...@@ -102,11 +102,11 @@ jobs:
export VSDEVCMD_ARGS="" export VSDEVCMD_ARGS=""
export GPU_ARCH_TYPE=${{ matrix.gpu-arch-type }} export GPU_ARCH_TYPE=${{ matrix.gpu-arch-type }}
export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }} export GPU_ARCH_VERSION=${{ matrix.gpu-arch-version }}
./.github/scripts/unittest.sh ./.github/scripts/unittest.sh
onnx: onnx:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
script: | script: |
...@@ -117,26 +117,26 @@ jobs: ...@@ -117,26 +117,26 @@ jobs:
export GPU_ARCH_VERSION='' export GPU_ARCH_VERSION=''
./.github/scripts/setup-env.sh ./.github/scripts/setup-env.sh
# Prepare conda # Prepare conda
CONDA_PATH=$(which conda) CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)" eval "$(${CONDA_PATH} shell.bash hook)"
conda activate ci conda activate ci
echo '::group::Install ONNX' echo '::group::Install ONNX'
pip install --progress-bar=off onnx onnxruntime pip install --progress-bar=off onnx onnxruntime
echo '::endgroup::' echo '::endgroup::'
echo '::group::Install testing utilities' echo '::group::Install testing utilities'
pip install --progress-bar=off pytest pip install --progress-bar=off pytest
echo '::endgroup::' echo '::endgroup::'
echo '::group::Run ONNX tests' echo '::group::Run ONNX tests'
pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_onnx.py pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_onnx.py
echo '::endgroup::' echo '::endgroup::'
unittests-extended: unittests-extended:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
script: | script: |
...@@ -147,21 +147,21 @@ jobs: ...@@ -147,21 +147,21 @@ jobs:
export GPU_ARCH_VERSION='' export GPU_ARCH_VERSION=''
./.github/scripts/setup-env.sh ./.github/scripts/setup-env.sh
# Prepare conda # Prepare conda
CONDA_PATH=$(which conda) CONDA_PATH=$(which conda)
eval "$(${CONDA_PATH} shell.bash hook)" eval "$(${CONDA_PATH} shell.bash hook)"
conda activate ci conda activate ci
echo '::group::Pre-download model weights' echo '::group::Pre-download model weights'
pip install --progress-bar=off aiohttp aiofiles tqdm pip install --progress-bar=off aiohttp aiofiles tqdm
python scripts/download_model_urls.py python scripts/download_model_urls.py
echo '::endgroup::' echo '::endgroup::'
echo '::group::Install testing utilities' echo '::group::Install testing utilities'
pip install --progress-bar=off pytest pip install --progress-bar=off pytest
echo '::endgroup::' echo '::endgroup::'
echo '::group::Run extended unittests' echo '::group::Run extended unittests'
export PYTORCH_TEST_WITH_EXTENDED=1 export PYTORCH_TEST_WITH_EXTENDED=1
pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_extended_*.py pytest --junit-xml="${RUNNER_TEST_RESULTS_DIR}/test-results.xml" -v --durations=25 test/test_extended_*.py
......
...@@ -14,7 +14,7 @@ concurrency: ...@@ -14,7 +14,7 @@ concurrency:
jobs: jobs:
do_update_viablestrict: do_update_viablestrict:
uses: pytorch/test-infra/.github/workflows/update-viablestrict.yml@main uses: pytorch/test-infra/.github/workflows/update-viablestrict.yml@release/2.1
with: with:
repository: pytorch/vision repository: pytorch/vision
required_checks: "Build Linux,Build M1,Build Macos,Build Windows,Tests,CMake,Lint,Docs" required_checks: "Build Linux,Build M1,Build Macos,Build Windows,Tests,CMake,Lint,Docs"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment