From 2a8600354bd3815407409ce66003164d953d1de4 Mon Sep 17 00:00:00 2001
From: Arin Wongprommoon <arin.wongprommoon@ed.ac.uk>
Date: Tue, 10 Jan 2023 14:31:02 +0000
Subject: [PATCH] [WIP] ci: ignore network and pipeline tests

WHY IS THIS CHANGE NEEDED?:
- pipeline failed: https://git.ecdf.ed.ac.uk/swain-lab/aliby/aliby/-/jobs/56303
  because ModuleNotFoundError: 'omero'

HOW DOES THE CHANGE SOLVE THE PROBLEM?:
- ci script had redundant lines: it run tests while ignoring network &
  pipeline, then ran tests again with coverage but without ignoring
  these
- ignored network because it requires 'omero'
- ignored pipeline because it requires specific files not accessible now

REFERENCES:
- issue #46
---
 .gitlab-ci.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 53f1ec13..40d88775 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,8 +38,7 @@ Local Tests:
   stage: tests
   script:
     # - poetry install -vv
-    - poetry run pytest ./tests --ignore ./tests/aliby/network --ignore ./tests/aliby/pipeline
-    - poetry run coverage run -m pytest
+    - poetry run coverage run -m pytest ./tests --ignore ./tests/aliby/network --ignore ./tests/aliby/pipeline
     - poetry run coverage report -m
     - poetry run coverage xml
   coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
-- 
GitLab