cic-utils/.drone.yml

35 lines
677 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 config --list
- poetry run pytest
environment:
LOGLEVEL: info
volumes:
# Mount pip cache from host
- name: pip_cache
path: /root/.cache/pip
- name: poetry_cache
path: /root/.cache/pypoetry
volumes:
- name: pip_cache
host:
path: /tmp/cache/drone/pip
- name: poetry_cache
host:
path: /tmp/cache/drone/pypoetry