From 32efeaa85582bc9345845d4c65e604ddb308a058 Mon Sep 17 00:00:00 2001 From: Georg Krause <mail@georg-krause.net> Date: Thu, 18 Aug 2022 09:16:33 +0200 Subject: [PATCH] Run tests in gitlab ci --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..2020f9b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +stages: + - test + - build + +tests: + stage: test + services: + - name: timescale/timescaledb:latest-pg11 + alias: pg + variables: + POSTGRES_PASSWORD: postgres + POSTGRES_DB: funkwhale_network_test + image: python:3.10-alpine + before_script: + - apk add poetry + - poetry install + script: + - poetry run pytest + variables: + DB_DSN: user=postgres password=postgres dbname=funkwhale_network host=db + -- GitLab