From 899fbbb3f0dd7ada49367c1a7ca06823d761d0e8 Mon Sep 17 00:00:00 2001 From: "Ibn-Salem, Jonas" <jonas.ibn-salem@tron-mainz.de> Date: Tue, 11 Jun 2024 16:08:10 +0200 Subject: [PATCH] remove empty deploy stage and separate build and test stages --- .gitlab-ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9e89396..41497da 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,14 @@ stages: + - build - test - - deploy + +build_pipeline: + image: condaforge/mambaforge:23.3.1-0 + stage: build + script: + - mamba env create -f environment.yml --prefix conda_env/ + - source /opt/conda/bin/activate conda_env/ + - pip install . test_pipeline: image: condaforge/mambaforge:23.3.1-0 @@ -12,9 +20,3 @@ test_pipeline: - python -m unittest tests/tests.py - bash run_test.sh -deploy-job: # This job runs in the deploy stage. - stage: deploy # It only runs when *both* jobs in the test stage complete successfully. - environment: production - script: - - echo "Deploying application..." - - echo "Application successfully deployed."