fix: another test
continuous-integration/drone/push Build is failing Details

This commit is contained in:
William Luke 2022-02-23 10:15:12 +03:00
parent 4c920b2717
commit 5366d1af93
1 changed files with 10 additions and 18 deletions

View File

@ -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: