unit test endpoint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-05-08 22:17:09 +02:00
parent e395915bf1
commit 644c2df888
7 changed files with 94 additions and 4 deletions

View File

@@ -27,6 +27,15 @@ steps:
- find . -name "*.py" -exec python3 -m mccabe --min 3 '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi
- bandit -r . + || if [ $? -eq 1 ]; then echo "you fail"; fi
- name: unit_test
image: python:3.8
environment:
REDIS_URL: "redis://cache"
commands:
- pip3 install -r requirements.txt
- pytest test.py
- name: rebuild-cache-with-filesystem
image: meltwater/drone-cache
pull: true
@@ -65,6 +74,10 @@ steps:
when:
status: [ failure ]
services:
- name: cache
image: redis
volumes:
- name: cache
temp: {}