From aff25fd5a822727b4f073501bef4edbaf1cd72b1 Mon Sep 17 00:00:00 2001 From: Paula Kammler Date: Wed, 6 Dec 2023 15:24:54 +0100 Subject: [PATCH] update pipeline to use coverage.py and new settings --- .github/workflows/django.yml | 4 +++- treexpert/settings/ci.py | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 treexpert/settings/ci.py diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 2815fcc..e2de818 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -41,4 +41,6 @@ jobs: - name: Run Tests run: | - python manage.py test + coverage run --source='.' manage.py test --settings settings.ci + coverage report + coverage xml diff --git a/treexpert/settings/ci.py b/treexpert/settings/ci.py new file mode 100644 index 0000000..f82c7dc --- /dev/null +++ b/treexpert/settings/ci.py @@ -0,0 +1,12 @@ +from .base import * + +DATABASES = { + "default": { + "ENGINE": "django.db.backends.postgresql", + "NAME": "ci", + "USER": "postgres", + "PASSWORD": "postgres", + "HOST": "postgres", + "PORT": "5432", + }, +}