From bad5bb5ab4333e391a7a6f9873896ad92eaf6d16 Mon Sep 17 00:00:00 2001 From: Derval Guillaume <gderval@uliege.be> Date: Sun, 4 Dec 2022 21:01:04 +0100 Subject: [PATCH] New gitlab config --- .gitlab-ci.yml | 27 +++------------------------ requirements.txt | 3 +++ 2 files changed, 6 insertions(+), 24 deletions(-) create mode 100644 requirements.txt diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c24bf4..e7590ce 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,31 +8,10 @@ before_script: - pip install virtualenv - virtualenv venv - source venv/bin/activate - -build-job: - stage: build - script: - - pip install . + - pip install -r requirements.txt test-exec: stage: test script: - - pip install . - - gboml test/test24.txt --linprog - - gboml test/test25.txt --linprog - - gboml test/test26.txt --linprog - - gboml test/test27.txt --linprog - - gboml test/test28.txt --linprog - -test-graphobject: - stage: test - script: - - pip install . - - python -c "import gboml; print(gboml.GbomlGraph())" - -test-main: - stage: test - script: - - pip install -r requirements.txt - - cd src - - python main.py ../test/test28.txt --linprog \ No newline at end of file + - export PYTHONPATH=src + - python -m unittest discover tests diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b5b3409 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +numpy>=1.23.1 +scipy>=1.8.0 +lark>=1.1.4 -- GitLab