From e7a1e5a4409e7e839b3cd021c8f4466e1d7f3542 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 13 Jan 2024 11:37:14 +0100 Subject: [PATCH] Add CI Pipeline and Skeleton for KrPano Tests Introduced a GitLab CI configuration to automate the testing process, which includes the setup of a Python 3.11 environment, cloning the project repository, installing dependencies, and executing migrations and tests specifically for the KrPano module. Also added a barebones TestCase for KrPano without implementation to lay groundwork for future tests. --- .gitlab-ci.yml | 14 ++++++++++++++ src/pix360_krpano/tests.py | 6 ++++++ 2 files changed, 20 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 src/pix360_krpano/tests.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5342972 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +image: python:3.11 + +stages: + - test + +test: + stage: test + script: + - git clone https://kumig.it/kumisystems/pix360.git project + - cd project + - pip install -Ur requirements.txt + - pip install .. + - python manage.py migrate + - python manage.py test pix360_krpano \ No newline at end of file diff --git a/src/pix360_krpano/tests.py b/src/pix360_krpano/tests.py new file mode 100644 index 0000000..9f45b71 --- /dev/null +++ b/src/pix360_krpano/tests.py @@ -0,0 +1,6 @@ +from django.test import TestCase + +SOURCE_URL = None + +class TestKRPano(TestCase): + pass