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.
This commit is contained in:
Kumi 2024-01-13 11:37:14 +01:00
parent 518a01052c
commit e7a1e5a440
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 20 additions and 0 deletions

14
.gitlab-ci.yml Normal file
View file

@ -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

View file

@ -0,0 +1,6 @@
from django.test import TestCase
SOURCE_URL = None
class TestKRPano(TestCase):
pass