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 run pytest
|
2022-02-03 08:49:00 +01:00
|
|
|
environment:
|
|
|
|
LOGLEVEL: info
|
|
|
|
|
|
|
|
volumes:
|
2022-02-03 11:13:12 +01:00
|
|
|
- name: poetry_cache
|
|
|
|
path: /root/.cache/pypoetry
|
2022-02-03 11:43:15 +01:00
|
|
|
|
2022-02-03 08:49:00 +01:00
|
|
|
volumes:
|
2022-02-03 11:13:12 +01:00
|
|
|
- name: poetry_cache
|
|
|
|
host:
|
|
|
|
path: /tmp/cache/drone/pypoetry
|