Skip to content

Commit 26d6080

Browse files
authored
add filter for binary_linux_wheel_py3.7_cpu (#3998)
* add filter for binary_linux_wheel_py3.7_cpu fixes issue #3997 * add tag,nightly filter to build_docs * flake8 formatting * fixes from review
1 parent 7dc8a69 commit 26d6080

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.circleci/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,11 @@ workflows:
10261026
- binary_linux_wheel:
10271027
conda_docker_image: pytorch/conda-builder:cpu
10281028
cu_version: cpu
1029+
filters:
1030+
branches:
1031+
only: '*'
1032+
tags:
1033+
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
10291034
name: binary_linux_wheel_py3.7_cpu
10301035
python_version: '3.7'
10311036
wheel_docker_image: pytorch/manylinux-cuda102
@@ -1424,6 +1429,12 @@ workflows:
14241429
name: binary_win_conda_py3.9_cu111
14251430
python_version: '3.9'
14261431
- build_docs:
1432+
filters:
1433+
branches:
1434+
only:
1435+
- nightly
1436+
tags:
1437+
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
14271438
name: build_docs
14281439
python_version: '3.7'
14291440
requires:

.circleci/regenerate.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,19 @@ def build_workflows(prefix='', filter_branch=None, upload=False, indentation=6,
4545
(python_version != python_versions[-1] or
4646
(cu_version not in [cu_versions[0], cu_versions[-1]])):
4747
fb = "master"
48+
if not fb and (os_type == 'linux' and
49+
cu_version == 'cpu' and
50+
btype == 'wheel' and
51+
python_version == '3.7'):
52+
# the fields must match the build_docs "requires" dependency
53+
fb = "*"
4854
w += workflow_pair(
4955
btype, os_type, python_version, cu_version,
5056
unicode, prefix, upload, filter_branch=fb)
5157

5258
if not filter_branch:
5359
# Build on every pull request, but upload only on nightly and tags
54-
w += build_doc_job(None)
60+
w += build_doc_job('nightly')
5561
w += upload_doc_job('nightly')
5662
return indent(indentation, w)
5763

@@ -83,7 +89,8 @@ def build_doc_job(filter_branch):
8389
}
8490

8591
if filter_branch:
86-
job["filters"] = gen_filter_branch_tree(filter_branch)
92+
job["filters"] = gen_filter_branch_tree(filter_branch,
93+
tags_list=RC_PATTERN)
8794
return [{"build_docs": job}]
8895

8996

0 commit comments

Comments
 (0)