Skip to content

Commit

Permalink
do not re-run checks and tests in CI on release
Browse files Browse the repository at this point in the history
  • Loading branch information
berislavlopac committed Oct 5, 2022
1 parent 76953b3 commit 398c969
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 398c969

Please sign in to comment.