cic-utils/.drone.yml

35 lines
677 B
YAML
Raw Normal View History

2022-02-03 08:49:00 +01:00
---
################
# Test #
################
kind: pipeline
name: run_tests
steps:
# Run tests against Python with pytest
2022-02-03 08:56:32 +01:00
- name: test
2022-02-03 08:49:00 +01:00
image: python:3.7.2
commands:
# Install dependencies
2022-02-03 11:13:12 +01:00
- pip install --no-cache-dir poetry
- poetry install
- poetry config --list
- poetry run pytest
2022-02-03 08:49:00 +01:00
environment:
LOGLEVEL: info
volumes:
# Mount pip cache from host
- name: pip_cache
path: /root/.cache/pip
2022-02-03 11:13:12 +01:00
- name: poetry_cache
path: /root/.cache/pypoetry
2022-02-03 08:49:00 +01:00
volumes:
- name: pip_cache
host:
path: /tmp/cache/drone/pip
2022-02-03 11:13:12 +01:00
- name: poetry_cache
host:
path: /tmp/cache/drone/pypoetry