From 398c969e8c1788427386e6c6daf920fc44e3181d Mon Sep 17 00:00:00 2001 From: Berislav Lopac Date: Thu, 6 Oct 2022 00:32:51 +0100 Subject: [PATCH] do not re-run checks and tests in CI on release --- .semaphore/semaphore.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index be9d8df..6d60ceb 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -10,6 +10,8 @@ global_job_config: - checkout blocks: - name: Code checks + skip: + when: "tag =~ '^([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?$'" dependencies: [] task: prologue: @@ -21,6 +23,8 @@ blocks: commands: - python -m tox -e checks - name: Unit tests + skip: + when: "tag =~ '^([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?$'" dependencies: - Code checks task: @@ -44,7 +48,7 @@ blocks: commands: - 'test-results publish "test-reports/$PY_ENV-junit.xml"' - name: Publish release - dependencies: ["Unit tests"] + dependencies: [] run: when: "tag =~ '^([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?$'" task: