From b07e52689bc797f92a9d7177a169da585b12c52d Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Sat, 8 Feb 2020 09:57:20 +1300 Subject: [PATCH] Filtering --- .circleci/config.yml | 54 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 42 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9a4be138..645cece4 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,13 +5,28 @@ orbs: workflows: version: 2 - test: + build_and_test: jobs: - - py38 - - py37 - - black - - check-manifest - - flake8 + - py38: + filters: + branches: + only: deploy/test + - py37: + filters: + branches: + only: deploy/test + - black: + filters: + branches: + only: deploy/test + - check-manifest: + filters: + branches: + only: deploy/test + - flake8: + filters: + branches: + only: deploy/test - build: filters: branches: @@ -22,13 +37,28 @@ workflows: filters: branches: only: deploy/test - test_and_release: + build_test_and_release: jobs: - - py38 - - py37 - - black - - check-manifest - - flake8 + - py38: + filters: + branches: + only: deploy/release + - py37: + filters: + branches: + only: deploy/release + - black: + filters: + branches: + only: deploy/release + - check-manifest: + filters: + branches: + only: deploy/release + - flake8: + filters: + branches: + only: deploy/release - build: filters: branches: