Skip to content

Commit 8dcfb1c

Browse files
authored
[Release only] Use Release 2.7 instead of main for CI jobs (#8969)
1 parent 697340a commit 8dcfb1c

9 files changed

+44
-44
lines changed

.github/workflows/build-cmake.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ 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_v2.yml@main
23+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
2424
permissions:
2525
id-token: write
2626
contents: read
@@ -29,7 +29,7 @@ jobs:
2929
runner: ${{ matrix.runner }}
3030
gpu-arch-type: ${{ matrix.gpu-arch-type }}
3131
gpu-arch-version: ${{ matrix.gpu-arch-version }}
32-
test-infra-ref: main
32+
test-infra-ref: release/2.7
3333
script: |
3434
set -euo pipefail
3535
@@ -44,11 +44,11 @@ jobs:
4444
include:
4545
- runner: macos-m1-stable
4646
fail-fast: false
47-
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
47+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.7
4848
with:
4949
repository: pytorch/vision
5050
runner: ${{ matrix.runner }}
51-
test-infra-ref: main
51+
test-infra-ref: release/2.7
5252
script: |
5353
set -euo pipefail
5454
@@ -68,13 +68,13 @@ jobs:
6868
gpu-arch-type: cuda
6969
gpu-arch-version: "11.8"
7070
fail-fast: false
71-
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
71+
uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.7
7272
with:
7373
repository: pytorch/vision
7474
runner: ${{ matrix.runner }}
7575
gpu-arch-type: ${{ matrix.gpu-arch-type }}
7676
gpu-arch-version: ${{ matrix.gpu-arch-version }}
77-
test-infra-ref: main
77+
test-infra-ref: release/2.7
7878
script: |
7979
set -euo pipefail
8080

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

+4-4
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.7
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.7
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.7
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.7
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

+4-4
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.7
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.7
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.7
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.7
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

+4-4
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.7
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.7
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.7
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.7
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

+4-4
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.7
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.7
2828
with-xpu: enable
2929
build:
3030
needs: generate-matrix
@@ -39,12 +39,12 @@ jobs:
3939
smoke-test-script: test/smoke_test.py
4040
package-name: torchvision
4141
name: ${{ matrix.repository }}
42-
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@main
42+
uses: pytorch/test-infra/.github/workflows/build_wheels_windows.yml@release/2.7
4343
with:
4444
repository: ${{ matrix.repository }}
4545
ref: ""
4646
test-infra-repository: pytorch/test-infra
47-
test-infra-ref: main
47+
test-infra-ref: release/2.7
4848
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
4949
pre-script: ${{ matrix.pre-script }}
5050
env-script: ${{ matrix.env-script }}

.github/workflows/docs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ on:
1414

1515
jobs:
1616
build:
17-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
17+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
1818
permissions:
1919
id-token: write
2020
contents: read
2121
with:
2222
repository: pytorch/vision
2323
upload-artifact: docs
24-
test-infra-ref: main
24+
test-infra-ref: release/2.7
2525
script: |
2626
set -euo pipefail
2727
@@ -82,15 +82,15 @@ jobs:
8282
needs: build
8383
if: github.repository == 'pytorch/vision' && github.event_name == 'push' &&
8484
((github.ref_type == 'branch' && github.ref_name == 'main') || github.ref_type == 'tag')
85-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
85+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
8686
permissions:
8787
id-token: write
8888
contents: write
8989
with:
9090
repository: pytorch/vision
9191
download-artifact: docs
9292
ref: gh-pages
93-
test-infra-ref: main
93+
test-infra-ref: release/2.7
9494
script: |
9595
set -euo pipefail
9696

.github/workflows/lint.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ on:
1111

1212
jobs:
1313
python-source-and-configs:
14-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
14+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
1515
permissions:
1616
id-token: write
1717
contents: read
1818
with:
1919
repository: pytorch/vision
20-
test-infra-ref: main
20+
test-infra-ref: release/2.7
2121
script: |
2222
set -euo pipefail
2323
@@ -41,13 +41,13 @@ jobs:
4141
fi
4242
4343
c-source:
44-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
44+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
4545
permissions:
4646
id-token: write
4747
contents: read
4848
with:
4949
repository: pytorch/vision
50-
test-infra-ref: main
50+
test-infra-ref: release/2.7
5151
script: |
5252
set -euo pipefail
5353
@@ -71,13 +71,13 @@ jobs:
7171
7272
7373
python-types:
74-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
74+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
7575
permissions:
7676
id-token: write
7777
contents: read
7878
with:
7979
repository: pytorch/vision
80-
test-infra-ref: main
80+
test-infra-ref: release/2.7
8181
script: |
8282
set -euo pipefail
8383
@@ -104,7 +104,7 @@ jobs:
104104
runs-on: ubuntu-latest
105105
steps:
106106
- name: Run BC Lint Action
107-
uses: pytorch/test-infra/.github/actions/bc-lint@main
107+
uses: pytorch/test-infra/.github/actions/bc-lint@release/2.7
108108
with:
109109
repo: ${{ github.event.pull_request.head.repo.full_name }}
110110
base_sha: ${{ github.event.pull_request.base.sha }}

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

+1-1
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_v2.yml@main
26+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
2727
permissions:
2828
id-token: write
2929
contents: read

.github/workflows/tests.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
gpu-arch-type: cuda
2727
gpu-arch-version: "11.8"
2828
fail-fast: false
29-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
29+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
3030
permissions:
3131
id-token: write
3232
contents: read
@@ -36,7 +36,7 @@ jobs:
3636
gpu-arch-type: ${{ matrix.gpu-arch-type }}
3737
gpu-arch-version: ${{ matrix.gpu-arch-version }}
3838
timeout: 120
39-
test-infra-ref: main
39+
test-infra-ref: release/2.7
4040
script: |
4141
set -euo pipefail
4242
@@ -56,12 +56,12 @@ jobs:
5656
- "3.12"
5757
runner: ["macos-m1-stable"]
5858
fail-fast: false
59-
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
59+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.7
6060
with:
6161
repository: pytorch/vision
6262
timeout: 240
6363
runner: ${{ matrix.runner }}
64-
test-infra-ref: main
64+
test-infra-ref: release/2.7
6565
script: |
6666
set -euo pipefail
6767
@@ -87,7 +87,7 @@ jobs:
8787
gpu-arch-type: cuda
8888
gpu-arch-version: "11.8"
8989
fail-fast: false
90-
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
90+
uses: pytorch/test-infra/.github/workflows/windows_job.yml@release/2.7
9191
permissions:
9292
id-token: write
9393
contents: read
@@ -97,7 +97,7 @@ jobs:
9797
gpu-arch-type: ${{ matrix.gpu-arch-type }}
9898
gpu-arch-version: ${{ matrix.gpu-arch-version }}
9999
timeout: 120
100-
test-infra-ref: main
100+
test-infra-ref: release/2.7
101101
script: |
102102
set -euxo pipefail
103103
@@ -110,13 +110,13 @@ jobs:
110110
./.github/scripts/unittest.sh
111111
112112
onnx:
113-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
113+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
114114
permissions:
115115
id-token: write
116116
contents: read
117117
with:
118118
repository: pytorch/vision
119-
test-infra-ref: main
119+
test-infra-ref: release/2.7
120120
script: |
121121
set -euo pipefail
122122
@@ -144,14 +144,14 @@ jobs:
144144
echo '::endgroup::'
145145
146146
unittests-extended:
147-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
147+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@release/2.7
148148
permissions:
149149
id-token: write
150150
contents: read
151151
if: contains(github.event.pull_request.labels.*.name, 'run-extended')
152152
with:
153153
repository: pytorch/vision
154-
test-infra-ref: main
154+
test-infra-ref: release/2.7
155155
script: |
156156
set -euo pipefail
157157

0 commit comments

Comments
 (0)