From 5366d1af930d3f8889c884a3743cd9b187d05a01 Mon Sep 17 00:00:00 2001 From: William Luke Date: Wed, 23 Feb 2022 10:15:12 +0300 Subject: [PATCH] fix: another test --- .drone.yml | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index f0dff97..b80ace6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,12 +4,12 @@ ################ kind: pipeline -name: test +name: default type: docker steps: # Run tests against Python with pytest - - name: ci + - name: test image: python:3.7.2 commands: # Install dependencies @@ -23,32 +23,24 @@ steps: - name: poetry_cache path: /root/.cache/pypoetry -volumes: - - name: poetry_cache - host: - path: /tmp/cache/drone/pypoetry ---- -kind: pipeline -name: publish -type: docker - -steps: - - name: cd + - name: publish image: python:3.7.2 commands: - - git fetch - - pip install --no-cache-dir poetry - - poetry install + # Install dependencies - poetry run semantic-release publish + depends_on: + - test + when: + branch: + - main environment: LOGLEVEL: info GITEA_TOKEN: from_secret: gitea_token + volumes: - name: poetry_cache path: /root/.cache/pypoetry -depends_on: - - test volumes: - name: poetry_cache host: