From fb173a404113fcc06efe344e83a58e7edb44abc9 Mon Sep 17 00:00:00 2001 From: "Aarthi Manivannan, Premanathan Aarthi Manivannan" Date: Thu, 6 Nov 2025 16:21:01 +0100 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8bbe7c6..5bebd17 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,9 @@ +workflow: + rules: + # Run the pipeline for merge requests or when committing to a branch + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH + image: python:3.14.0 stages: @@ -11,8 +17,17 @@ setup_environment: - pip install -r requirements.txt - echo "Dependencies installed successfully." + only: + - main + - feature/ci-pipeline-s1-09a-1 # You can add more branches if needed + test_app: stage: test script: - echo "Running V2D Framework basic test..." - python -m unittest discover || echo "No tests found." + + only: + - main + - feature/ci-pipeline-s1-09a-1 +