From 36f09ce4bc0b99af19a240b295a89edd7b1f20d7 Mon Sep 17 00:00:00 2001
From: Jan Habscheid <jan.habscheid@rwth-aachen.de>
Date: Tue, 5 Nov 2024 17:27:22 +0100
Subject: [PATCH] Added tests to the pipeline

---
 .gitlab-ci.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4728e6f..cbad9c8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,7 @@ image: docker:20.10.16  # Define the Docker image
 stages:  # Define stages in the pipeline
   - prepare
   - build
+  - test
   - deploy
 
 prepare:
@@ -36,6 +37,19 @@ build-docs:
     paths:
       - docs/build  # Save the build output for later stages
     expire_in: 12 month  # Optional: Set how long to keep the artifacts (default: 30 days)
+
+# Job to test the implementation
+test:
+  stage: test
+  dependencies:
+  - prepare
+  image:
+    name: $CI_REGISTRY_IMAGE:latest
+    entrypoint: [""]
+  tags:
+    - docker
+  script:
+    - python -m pytest # Run the tests
   
 # Job to deploy documentation to GitLab Pages
 pages:
-- 
GitLab