From 4c098165ad8fd97331a1eab235fc2d57ce740c20 Mon Sep 17 00:00:00 2001 From: William Luke Date: Thu, 3 Feb 2022 10:49:00 +0300 Subject: [PATCH] ci: add initial config --- .drone.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .drone.yaml diff --git a/.drone.yaml b/.drone.yaml new file mode 100644 index 0000000..02c55a6 --- /dev/null +++ b/.drone.yaml @@ -0,0 +1,29 @@ +--- +################ +# Test # +################ + +kind: pipeline +name: run_tests + +steps: + + # Run tests against Python with pytest + - name: engine_test + 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