Skip to content

Commit 41f55d4

Browse files
ejguanfacebook-github-bot
authored andcommitted
Re-land Use PyTorch RC release on release branch (#510) (#514)
Summary: Currently the CI on release branch uses nightly PyTorch release. This PR changes it to use RC PyTorch release. See the CI result for when the PR is landed (nightly channel): https://github.com/pytorch/data/runs/6867662390?check_suite_focus=true#step:8:3 See the CI result of the PR for release branch (test channel): https://github.com/pytorch/data/runs/6867788289?check_suite_focus=true#step:8:3 Pull Request resolved: #514 Reviewed By: NivekT Differential Revision: D37116635 Pulled By: ejguan fbshipit-source-id: 2dbe65da8121dfbd39690c83c2e1ca6cb70c0087
1 parent 2e76749 commit 41f55d4

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/ci.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- main
66
- release/*
7+
tags:
78
pull_request:
89
types: [opened, synchronize, reopened, labeled]
910
branches:
@@ -30,6 +31,16 @@ jobs:
3031
- 3.8
3132
- 3.9
3233
steps:
34+
- name: Get PyTorch Channel
35+
shell: bash
36+
run: |
37+
if [[ "${{ github.base_ref }}" == release/* ]] || [[ "${{ github.ref }}" == refs/heads/release/* ]] || [[ "${{ github.ref }}" == refs/tags/v* ]]; then
38+
PT_CHANNEL="https://download.pytorch.org/whl/test/cpu/torch_test.html"
39+
else
40+
PT_CHANNEL="https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html"
41+
fi
42+
echo "::set-output name=value::$PT_CHANNEL"
43+
id: pytorch_channel
3344
- name: Setup additional system libraries
3445
if: startsWith( matrix.os, 'ubuntu' )
3546
run: |
@@ -55,7 +66,7 @@ jobs:
5566
- name: Install dependencies
5667
run: |
5768
pip3 install -r requirements.txt
58-
pip3 install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
69+
pip3 install --pre torch -f "${{ steps.pytorch_channel.outputs.value }}"
5970
pip3 install cmake ninja
6071
echo "/home/runner/.local/bin" >> $GITHUB_PATH
6172
- name: Build TorchData

.github/workflows/domain_ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010
# For PR created by ghstack
1111
- gh/*/*/base
12-
- release/*
12+
# - release/*
1313

1414
jobs:
1515
torchvision:

0 commit comments

Comments
 (0)