29 lines
497 B
YAML
29 lines
497 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
|
|
|
|
volumes:
|
|
- name: poetry_cache
|
|
host:
|
|
path: /tmp/cache/drone/pypoetry
|