forked from GeomScale/dingo
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.65 KB
/
ubuntu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# dingo : a python library for metabolic networks sampling and analysis
# dingo is part of GeomScale project
# Copyright (c) 2021-2022 Vissarion Fisikopoulos
# Licensed under GNU LGPL.3, see LICENCE file
name: dingo-ubuntu
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
#python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Load submodules
run: |
git submodule update --init;
- name: Download and unzip the boost library
run: |
wget -O boost_1_76_0.tar.bz2 https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2;
tar xjf boost_1_76_0.tar.bz2;
rm boost_1_76_0.tar.bz2;
- name: Install dependencies
run: |
sudo apt-get install libsuitesparse-dev;
curl -sSL https://install.python-poetry.org | python3 - --version 1.3.2;
poetry --version
poetry show -v
source $(poetry env info --path)/bin/activate
poetry install;
pip3 install numpy scipy;
- name: Run tests
run: |
poetry run python3 tests/fba.py;
poetry run python3 tests/full_dimensional.py;
poetry run python3 tests/max_ball.py;
poetry run python3 tests/scaling.py;
# currently we do not test with gurobi
# python3 tests/fast_implementation_test.py;
#run all tests
#python -m unittest discover test
#TODO: use pytest