File tree Expand file tree Collapse file tree 3 files changed +43
-5
lines changed Expand file tree Collapse file tree 3 files changed +43
-5
lines changed Original file line number Diff line number Diff line change 16
16
- " third_party/*"
17
17
- .gitignore
18
18
- " *.md"
19
+ workflow_dispatch :
19
20
20
21
jobs :
21
22
build_test :
Original file line number Diff line number Diff line change 20
20
- .gitignore
21
21
- " *.md"
22
22
workflow_dispatch :
23
+ inputs :
24
+ channel :
25
+ description : " Channel to use (release, nightly, test)"
26
+ required : true
27
+ type : choice
28
+ options :
29
+ - release
30
+ - nightly
31
+ - test
23
32
24
33
jobs :
25
34
build_test :
@@ -76,15 +85,22 @@ jobs:
76
85
conda info
77
86
python --version
78
87
conda run -n build_binary python --version
88
+ if [[ "${{ inputs.channel }}" = "release" ]]; then
89
+ index_url=https://download.pytorch.org/whl/${{ matrix.cuda-tag }}
90
+ elif [ -z "${{ inputs.channel }}" ]; then
91
+ index_url=https://download.pytorch.org/whl/nightly/${{ matrix.cuda-tag }}
92
+ else
93
+ index_url=https://download.pytorch.org/whl/${{ inputs.channel }}/${{ matrix.cuda-tag }}
94
+ fi
79
95
conda run -n build_binary \
80
- pip install torch --index-url https://download.pytorch.org/whl/nightly/${{ matrix.cuda-tag }}
96
+ pip install torch --index-url $index_url
81
97
conda run -n build_binary \
82
- python -c "import torch"
98
+ python -c "import torch; print(torch.__version__) "
83
99
echo "torch succeeded"
84
100
conda run -n build_binary \
85
101
python -c "import torch.distributed"
86
102
conda run -n build_binary \
87
- pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/${{ matrix.cuda-tag }}
103
+ pip install fbgemm-gpu --index-url $index_url
88
104
conda run -n build_binary \
89
105
python -c "import fbgemm_gpu"
90
106
echo "fbgemm_gpu succeeded"
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ name: CPU Unit Test CI
5
5
6
6
on :
7
7
push :
8
+ branches :
9
+ # only run tests on main branch & nightly; release should be triggered manually
10
+ - nightly
11
+ - main
8
12
paths-ignore :
9
13
- " docs/*"
10
14
- " third_party/*"
16
20
- " third_party/*"
17
21
- .gitignore
18
22
- " *.md"
23
+ workflow_dispatch :
24
+ inputs :
25
+ channel :
26
+ description : " Channel to use for torch and fbgemm"
27
+ required : true
28
+ type : choice
29
+ options :
30
+ - release
31
+ - nightly
32
+ - test
19
33
20
34
jobs :
21
35
build_test :
@@ -60,15 +74,22 @@ jobs:
60
74
conda info
61
75
python --version
62
76
conda run -n build_binary python --version
77
+ if [[ "${{ inputs.channel }}" = "release" ]]; then
78
+ index_url=https://download.pytorch.org/whl/cpu
79
+ elif [ -z "${{ inputs.channel }}" ]; then
80
+ index_url=https://download.pytorch.org/whl/nightly/cpu
81
+ else
82
+ index_url=https://download.pytorch.org/whl/${{ inputs.channel }}/cpu
83
+ fi
63
84
conda run -n build_binary \
64
- pip install torch --index-url https://download.pytorch.org/whl/nightly/cpu
85
+ pip install torch --index-url $index_url
65
86
conda run -n build_binary \
66
87
python -c "import torch"
67
88
echo "torch succeeded"
68
89
conda run -n build_binary \
69
90
python -c "import torch.distributed"
70
91
conda run -n build_binary \
71
- pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/cpu
92
+ pip install fbgemm-gpu --index-url $index_url
72
93
conda run -n build_binary \
73
94
python -c "import fbgemm_gpu"
74
95
echo "fbgemm_gpu succeeded"
You can’t perform that action at this time.
0 commit comments