From c5de4b8487e938cd65469550f832ae541f414abc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9line?= <liuceline2001@yahoo.fr>
Date: Thu, 2 Feb 2023 14:15:47 +0100
Subject: [PATCH] fix yml

---
 .gitlab-ci.yml | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2446731..a5d7e85 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,26 +1,23 @@
 image: python:3.9
 
+before_script:
+  - pip install -r requirements.txt
+
 stages:
-  - build
   - test
-  - export
+  - build
 
 # Build stage
 build:
   stage: build
   script:
-    - pip install -r requirements.txt
     - python machine_learning.py
+  artefacts:
+    paths:
+      - digits_model.joblib
 
 # Test stage
 test:
   stage: test
   script:
-    - pip install -r requirements.txt
-    - pytest test_prediction.py
-
-# Export stage
-export:
-  stage: export
-  script:
-    - mv digits_model.joblib artifacts/
\ No newline at end of file
+    - pytest test_prediction.py
\ No newline at end of file
-- 
GitLab