From ae129fa4c32b140a850d03593d582f0ab1cce6bb Mon Sep 17 00:00:00 2001 From: mattip Date: Tue, 15 Jun 2021 11:49:42 +0300 Subject: [PATCH] fix tag build so it triggers prerequisites --- .circleci/config.yml | 10 ++++++++++ .circleci/regenerate.py | 10 ++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b2c61d69f6..8960f53b7f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -622,6 +622,11 @@ workflows: name: binary_linux_wheel_py3.7 python_version: '3.7' - binary_linux_wheel: + filters: + branches: + only: /.*/ + tags: + only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ name: binary_linux_wheel_py3.8 python_version: '3.8' - binary_linux_wheel: @@ -688,6 +693,11 @@ workflows: name: binary_windows_conda_py3.9 python_version: '3.9' - build_docs: + filters: + branches: + only: /.*/ + tags: + only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ name: build_docs python_version: '3.8' requires: diff --git a/.circleci/regenerate.py b/.circleci/regenerate.py index d3fd6131f7..740235e858 100755 --- a/.circleci/regenerate.py +++ b/.circleci/regenerate.py @@ -30,11 +30,17 @@ def build_workflows(prefix='', upload=False, filter_branch=None, indentation=6): for btype in ["wheel", "conda"]: for os_type in ["linux", "macos", "windows"]: for python_version in PYTHON_VERSIONS: - w += build_workflow_pair(btype, os_type, python_version, filter_branch, prefix, upload) + fb = filter_branch + if not fb and (os_type == 'linux' and + btype == 'wheel' and + python_version == '3.8'): + # the fields must match the build_docs "requires" dependency + fb = '/.*/' + w += build_workflow_pair(btype, os_type, python_version, fb, prefix, upload) if not filter_branch: # Build on every pull request, but upload only on nightly and tags - w += build_doc_job(None) + w += build_doc_job('/.*/') w += upload_doc_job('nightly') w += docstring_parameters_sync_job(None)