Files
video2document/.gitlab-ci.yml
T
Aarthi Manivannan, Premanathan Aarthi Manivannan 5e5be60982 Update .gitlab-ci.yml file
2025-11-13 12:37:53 +01:00

51 lines
1.2 KiB
YAML

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:
- setup
- test
# -------- SETUP STAGE --------
setup_environment:
stage: setup
script:
- echo "🔧 Setting up environment..."
- pip install --upgrade pip
- pip install -r requirements.txt
- echo "✅ Dependencies installed successfully."
only:
- main
- feature/ci-pipeline-s1-09a-1 # Add more branches if needed
# -------- TEST APP FOLDER --------
test_app:
stage: test
script:
- echo "🧪 Running tests in app folder..."
- python -m unittest discover app || echo "⚠️ No tests found in app folder."
- echo "✅ App folder test completed successfully."
only:
- main
- feature/ci-pipeline-s1-09a-1
# -------- TEST TEST FOLDER --------
test_test_folder:
stage: test
script:
- echo "🧪 Running tests in test folder..."
- python -m unittest discover test || echo "⚠️ No tests found in test folder."
- echo "✅ Test folder test completed successfully."
only:
- main
- feature/ci-pipeline-s1-09a-1