Skip to content

Commit

Permalink
remove empty deploy stage and separate build and test stages
Browse files Browse the repository at this point in the history
  • Loading branch information
ibn-salem committed Jun 11, 2024
1 parent 6f42c38 commit 899fbbb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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."

0 comments on commit 899fbbb

Please sign in to comment.