From 6f66eb2b735912802b6befbd745d2fb5adbf4aaf Mon Sep 17 00:00:00 2001
From: Florentin Labelle <florentin.labelle@student-cs.fr>
Date: Sun, 9 Oct 2022 19:05:05 +0200
Subject: [PATCH] Add te to CI

---
 .gitlab-ci.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 666d365..e62c428 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,7 @@ image: python:3.10
 stages:
   - dependencies
   - lint
+  - test
 
 download_dependencies:
   stage: dependencies
@@ -26,3 +27,14 @@ pylint:
     - pip install pylint
   script:
     - pylint calculator --fail-on=error
+
+pytest:
+  stage: test
+  dependencies:
+    - download_dependencies
+  needs:
+    - download_dependencies
+  before_script:
+    - source .venv/bin/activate
+  script:
+    - pytest calculator
-- 
GitLab