Skip to content

Commit 4a94962

Browse files
authored
Use @release/2.5 instead of @main for CI jobs (#8646)
1 parent db5f8a0 commit 4a94962

13 files changed

+58
-58
lines changed

.github/workflows/build-cmake.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
gpu-arch-type: cuda
2121
gpu-arch-version: "11.8"
2222
fail-fast: false
23-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
23+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.5
2424
with:
2525
repository: pytorch/vision
2626
runner: ${{ matrix.runner }}
2727
gpu-arch-type: ${{ matrix.gpu-arch-type }}
2828
gpu-arch-version: ${{ matrix.gpu-arch-version }}
29-
test-infra-ref: main
29+
test-infra-ref: release/2.5
3030
script: |
3131
set -euo pipefail
3232
@@ -42,11 +42,11 @@ jobs:
4242
include:
4343
- runner: macos-m1-stable
4444
fail-fast: false
45-
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
45+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.5
4646
with:
4747
repository: pytorch/vision
4848
runner: ${{ matrix.runner }}
49-
test-infra-ref: main
49+
test-infra-ref: release/2.5
5050
script: |
5151
set -euo pipefail
5252
@@ -66,13 +66,13 @@ jobs:
6666
gpu-arch-type: cuda
6767
gpu-arch-version: "11.8"
6868
fail-fast: false
69-
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
69+
uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.5
7070
with:
7171
repository: pytorch/vision
7272
runner: ${{ matrix.runner }}
7373
gpu-arch-type: ${{ matrix.gpu-arch-type }}
7474
gpu-arch-version: ${{ matrix.gpu-arch-version }}
75-
test-infra-ref: main
75+
test-infra-ref: release/2.5
7676
script: |
7777
set -euo pipefail
7878

.github/workflows/build-conda-linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ on:
1515

1616
jobs:
1717
generate-matrix:
18-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
18+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.5
1919
with:
2020
package-type: conda
2121
os: linux
2222
test-infra-repository: pytorch/test-infra
23-
test-infra-ref: main
23+
test-infra-ref: release/2.5
2424
build:
2525
needs: generate-matrix
2626
strategy:
@@ -34,13 +34,13 @@ jobs:
3434
smoke-test-script: test/smoke_test.py
3535
package-name: torchvision
3636
name: ${{ matrix.repository }}
37-
uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@main
37+
uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@release/2.5
3838
with:
3939
conda-package-directory: ${{ matrix.conda-package-directory }}
4040
repository: ${{ matrix.repository }}
4141
ref: ""
4242
test-infra-repository: pytorch/test-infra
43-
test-infra-ref: main
43+
test-infra-ref: release/2.5
4444
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4545
pre-script: ${{ matrix.pre-script }}
4646
post-script: ${{ matrix.post-script }}

.github/workflows/build-conda-m1.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ on:
1515

1616
jobs:
1717
generate-matrix:
18-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
18+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.5
1919
with:
2020
package-type: conda
2121
os: macos-arm64
2222
test-infra-repository: pytorch/test-infra
23-
test-infra-ref: main
23+
test-infra-ref: release/2.5
2424
build:
2525
needs: generate-matrix
2626
strategy:
@@ -34,13 +34,13 @@ jobs:
3434
smoke-test-script: test/smoke_test.py
3535
package-name: torchvision
3636
name: ${{ matrix.repository }}
37-
uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@main
37+
uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@release/2.5
3838
with:
3939
conda-package-directory: ${{ matrix.conda-package-directory }}
4040
repository: ${{ matrix.repository }}
4141
ref: ""
4242
test-infra-repository: pytorch/test-infra
43-
test-infra-ref: main
43+
test-infra-ref: release/2.5
4444
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4545
env-var-script: ./.github/scripts/export_IS_M1_CONDA_BUILD_JOB.sh
4646
pre-script: ${{ matrix.pre-script }}

.github/workflows/build-conda-windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ on:
1515

1616
jobs:
1717
generate-matrix:
18-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
18+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.5
1919
with:
2020
package-type: conda
2121
os: windows
2222
test-infra-repository: pytorch/test-infra
23-
test-infra-ref: main
23+
test-infra-ref: release/2.5
2424
build:
2525
needs: generate-matrix
2626
strategy:
@@ -35,13 +35,13 @@ jobs:
3535
smoke-test-script: test/smoke_test.py
3636
package-name: torchvision
3737
name: ${{ matrix.repository }}
38-
uses: pytorch/test-infra/.github/workflows/build_conda_windows.yml@main
38+
uses: pytorch/test-infra/.github/workflows/build_conda_windows.yml@release/2.5
3939
with:
4040
conda-package-directory: ${{ matrix.conda-package-directory }}
4141
repository: ${{ matrix.repository }}
4242
ref: ""
4343
test-infra-repository: pytorch/test-infra
44-
test-infra-ref: main
44+
test-infra-ref: release/2.5
4545
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4646
pre-script: ${{ matrix.pre-script }}
4747
post-script: ${{ matrix.post-script }}

.github/workflows/build-wheels-aarch64-linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ permissions:
1919

2020
jobs:
2121
generate-matrix:
22-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
22+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.5
2323
with:
2424
package-type: wheel
2525
os: linux-aarch64
2626
test-infra-repository: pytorch/test-infra
27-
test-infra-ref: main
27+
test-infra-ref: release/2.5
2828
with-cuda: disable
2929
build:
3030
needs: generate-matrix
@@ -38,12 +38,12 @@ jobs:
3838
smoke-test-script: test/smoke_test.py
3939
package-name: torchvision
4040
name: ${{ matrix.repository }}
41-
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
41+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.5
4242
with:
4343
repository: ${{ matrix.repository }}
4444
ref: ""
4545
test-infra-repository: pytorch/test-infra
46-
test-infra-ref: main
46+
test-infra-ref: release/2.5
4747
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4848
pre-script: ${{ matrix.pre-script }}
4949
post-script: ${{ matrix.post-script }}

.github/workflows/build-wheels-linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ permissions:
1919

2020
jobs:
2121
generate-matrix:
22-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
22+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.5
2323
with:
2424
package-type: wheel
2525
os: linux
2626
test-infra-repository: pytorch/test-infra
27-
test-infra-ref: main
27+
test-infra-ref: release/2.5
2828
with-xpu: enable
2929
build:
3030
needs: generate-matrix
@@ -38,12 +38,12 @@ jobs:
3838
smoke-test-script: test/smoke_test.py
3939
package-name: torchvision
4040
name: ${{ matrix.repository }}
41-
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
41+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.5
4242
with:
4343
repository: ${{ matrix.repository }}
4444
ref: ""
4545
test-infra-repository: pytorch/test-infra
46-
test-infra-ref: main
46+
test-infra-ref: release/2.5
4747
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4848
pre-script: ${{ matrix.pre-script }}
4949
post-script: ${{ matrix.post-script }}

.github/workflows/build-wheels-m1.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ permissions:
1919

2020
jobs:
2121
generate-matrix:
22-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
22+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.5
2323
with:
2424
package-type: wheel
2525
os: macos-arm64
2626
test-infra-repository: pytorch/test-infra
27-
test-infra-ref: main
27+
test-infra-ref: release/2.5
2828
build:
2929
needs: generate-matrix
3030
strategy:
@@ -37,12 +37,12 @@ jobs:
3737
smoke-test-script: test/smoke_test.py
3838
package-name: torchvision
3939
name: ${{ matrix.repository }}
40-
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main
40+
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.5
4141
with:
4242
repository: ${{ matrix.repository }}
4343
ref: ""
4444
test-infra-repository: pytorch/test-infra
45-
test-infra-ref: main
45+
test-infra-ref: release/2.5
4646
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4747
pre-script: ${{ matrix.pre-script }}
4848
post-script: ${{ matrix.post-script }}

.github/workflows/build-wheels-windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ permissions:
1919

2020
jobs:
2121
generate-matrix:
22-
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
22+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.5
2323
with:
2424
package-type: wheel
2525
os: windows
2626
test-infra-repository: pytorch/test-infra
27-
test-infra-ref: main
27+
test-infra-ref: release/2.5
2828
build:
2929
needs: generate-matrix
3030
strategy:
@@ -38,12 +38,12 @@ jobs:
3838
smoke-test-script: test/smoke_test.py
3939
package-name: torchvision
4040
name: ${{ matrix.repository }}
41-
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main
41+
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@release/2.5
4242
with:
4343
repository: ${{ matrix.repository }}
4444
ref: ""
4545
test-infra-repository: pytorch/test-infra
46-
test-infra-ref: main
46+
test-infra-ref: release/2.5
4747
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4848
pre-script: ${{ matrix.pre-script }}
4949
env-script: ${{ matrix.env-script }}

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ on:
1414

1515
jobs:
1616
build:
17-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
17+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.5
1818
with:
1919
repository: pytorch/vision
2020
upload-artifact: docs
21-
test-infra-ref: main
21+
test-infra-ref: release/2.5
2222
script: |
2323
set -euo pipefail
2424
@@ -81,12 +81,12 @@ jobs:
8181
((github.ref_type == 'branch' && github.ref_name == 'main') || github.ref_type == 'tag')
8282
permissions:
8383
contents: write
84-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
84+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.5
8585
with:
8686
repository: pytorch/vision
8787
download-artifact: docs
8888
ref: gh-pages
89-
test-infra-ref: main
89+
test-infra-ref: release/2.5
9090
script: |
9191
set -euo pipefail
9292

.github/workflows/lint.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ on:
1111

1212
jobs:
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.yml@release/2.5
1515
with:
1616
repository: pytorch/vision
17-
test-infra-ref: main
17+
test-infra-ref: release/2.5
1818
script: |
1919
set -euo pipefail
2020
@@ -38,10 +38,10 @@ jobs:
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.yml@release/2.5
4242
with:
4343
repository: pytorch/vision
44-
test-infra-ref: main
44+
test-infra-ref: release/2.5
4545
script: |
4646
set -euo pipefail
4747
@@ -65,10 +65,10 @@ jobs:
6565
6666
6767
python-types:
68-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
68+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.5
6969
with:
7070
repository: pytorch/vision
71-
test-infra-ref: main
71+
test-infra-ref: release/2.5
7272
script: |
7373
set -euo pipefail
7474
@@ -95,7 +95,7 @@ jobs:
9595
runs-on: ubuntu-latest
9696
steps:
9797
- name: Run BC Lint Action
98-
uses: pytorch/test-infra/.github/actions/bc-lint@main
98+
uses: pytorch/test-infra/.github/actions/bc-lint@release/2.5
9999
with:
100100
repo: ${{ github.event.pull_request.head.repo.full_name }}
101101
base_sha: ${{ github.event.pull_request.base.sha }}

.github/workflows/prototype-tests-linux-gpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
gpu-arch-type: cuda
2424
gpu-arch-version: "11.8"
2525
fail-fast: false
26-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
26+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.5
2727
with:
2828
repository: pytorch/vision
2929
runner: ${{ matrix.runner }}

0 commit comments

Comments
 (0)