fix: another test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
William Luke 2022-02-23 10:15:12 +03:00
parent 4c920b2717
commit 5366d1af93

View File

@ -4,12 +4,12 @@
################ ################
kind: pipeline kind: pipeline
name: test name: default
type: docker type: docker
steps: steps:
# Run tests against Python with pytest # Run tests against Python with pytest
- name: ci - name: test
image: python:3.7.2 image: python:3.7.2
commands: commands:
# Install dependencies # Install dependencies
@ -23,32 +23,24 @@ steps:
- name: poetry_cache - name: poetry_cache
path: /root/.cache/pypoetry path: /root/.cache/pypoetry
volumes: - name: publish
- name: poetry_cache
host:
path: /tmp/cache/drone/pypoetry
---
kind: pipeline
name: publish
type: docker
steps:
- name: cd
image: python:3.7.2 image: python:3.7.2
commands: commands:
- git fetch # Install dependencies
- pip install --no-cache-dir poetry
- poetry install
- poetry run semantic-release publish - poetry run semantic-release publish
depends_on:
- test
when:
branch:
- main
environment: environment:
LOGLEVEL: info LOGLEVEL: info
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea_token from_secret: gitea_token
volumes: volumes:
- name: poetry_cache - name: poetry_cache
path: /root/.cache/pypoetry path: /root/.cache/pypoetry
depends_on:
- test
volumes: volumes:
- name: poetry_cache - name: poetry_cache
host: host: