cic-utils/.drone.yml

30 lines
504 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
- pip install -r test_requirements.txt
- bash ./tests/run_tests.sh
environment:
LOGLEVEL: info
volumes:
# Mount pip cache from host
- name: pip_cache
path: /root/.cache/pip
volumes:
- name: pip_cache
host:
path: /tmp/cache/drone/pip