42 lines
814 B
YAML
42 lines
814 B
YAML
---
|
|
################
|
|
# Test #
|
|
################
|
|
|
|
kind: pipeline
|
|
name: run_tests
|
|
|
|
steps:
|
|
# Run tests against Python with pytest
|
|
- name: test
|
|
image: python:3.7.2
|
|
commands:
|
|
# Install dependencies
|
|
- pip install --no-cache-dir poetry
|
|
- poetry install
|
|
- poetry run pytest
|
|
environment:
|
|
LOGLEVEL: info
|
|
|
|
volumes:
|
|
- name: poetry_cache
|
|
path: /root/.cache/pypoetry
|
|
|
|
- name: publish
|
|
image: python:3.7.2
|
|
commands:
|
|
# Install dependencies
|
|
- pip install --no-cache-dir poetry
|
|
- poetry install
|
|
- poetry run semantic-release publish --noop
|
|
environment:
|
|
LOGLEVEL: info
|
|
|
|
volumes:
|
|
- name: poetry_cache
|
|
path: /root/.cache/pypoetry
|
|
volumes:
|
|
- name: poetry_cache
|
|
host:
|
|
path: /tmp/cache/drone/pypoetry
|