Skip to content

Commit f44f20c

Browse files
authored
Use @release/2.4 instead of @main for CI jobs (#8490)
1 parent 143d078 commit f44f20c

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.4
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.4
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.4
4646
with:
4747
repository: pytorch/vision
4848
runner: ${{ matrix.runner }}
49-
test-infra-ref: main
49+
test-infra-ref: release/2.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
4444
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4545
pre-script: ${{ matrix.pre-script }}
4646
post-script: ${{ matrix.post-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.4
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.4
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_windows.yml@main
37+
uses: pytorch/test-infra/.github/workflows/build_conda_windows.yml@release/2.4
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.4
4444
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4545
pre-script: ${{ matrix.pre-script }}
4646
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.4
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.4
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.4
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.4
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.4
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.4
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_linux.yml@main
40+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.4
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.4
4646
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4747
pre-script: ${{ matrix.pre-script }}
4848
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
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.4
1818
with:
1919
repository: pytorch/vision
2020
upload-artifact: docs
21-
test-infra-ref: main
21+
test-infra-ref: release/2.4
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.4
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.4
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.4
1515
with:
1616
repository: pytorch/vision
17-
test-infra-ref: main
17+
test-infra-ref: release/2.4
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.4
4242
with:
4343
repository: pytorch/vision
44-
test-infra-ref: main
44+
test-infra-ref: release/2.4
4545
script: |
4646
set -euo pipefail
4747
@@ -73,10 +73,10 @@ jobs:
7373
7474
7575
python-types:
76-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
76+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
7777
with:
7878
repository: pytorch/vision
79-
test-infra-ref: main
79+
test-infra-ref: release/2.4
8080
script: |
8181
set -euo pipefail
8282
@@ -103,7 +103,7 @@ jobs:
103103
runs-on: ubuntu-latest
104104
steps:
105105
- name: Run BC Lint Action
106-
uses: pytorch/test-infra/.github/actions/bc-lint@main
106+
uses: pytorch/test-infra/.github/actions/bc-lint@release/2.4
107107
with:
108108
repo: ${{ github.event.pull_request.head.repo.full_name }}
109109
base_sha: ${{ github.event.pull_request.base.sha }}

0 commit comments

Comments
 (0)