From adada84e9af3d99430ab409cc061774b56f8f3b2 Mon Sep 17 00:00:00 2001 From: Michal Kunc Date: Fri, 17 Feb 2023 15:28:11 +0100 Subject: [PATCH] Add test step to CI --- .drone.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.drone.yml b/.drone.yml index de2d078..a025e37 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,17 @@ type: docker name: default steps: +- name: test + image: python:3.10 + commands: + - pip3 install poetry + - poetry install --no-root + - export SECRET_KEY=$(openssl rand -hex 32) + - export DATABASE_URL=sqlite://$(mktemp)/db.sqlite3 + - poetry run ./manage.py test + environment: + ALLOWED_HOSTS: localhost,127.0.0.1 + DEBUG: True - name: deploy image: caprover/cli-caprover:2.2.3 commands: