Skip to content

Commit 21646da

Browse files
Added continuous integration and tests directory
1 parent 38b336f commit 21646da

File tree

3 files changed

+99
-0
lines changed

3 files changed

+99
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Continous integration
2+
on: [push]
3+
jobs:
4+
Run-tests:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- name: Set up Python 3.9
9+
uses: actions/setup-python@v4
10+
with:
11+
python-version: '3.9'
12+
env:
13+
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
14+
- name: Install
15+
run: |
16+
pip install --upgrade pip
17+
pip install -r requirements.txt
18+
- name: Run tests
19+
run: |
20+
nose2 --with-coverage tests

notebooks/explore_sedml.ipynb

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,65 @@
269269
"if len(phrasedml.getLastError()) > 0:\n",
270270
" print(phrasedml.getLastError())"
271271
]
272+
},
273+
{
274+
"cell_type": "code",
275+
"execution_count": 37,
276+
"id": "9a48ccc9-08f7-47bc-b89e-ac3e00453a7b",
277+
"metadata": {},
278+
"outputs": [
279+
{
280+
"data": {
281+
"text/plain": [
282+
"['POINTER',\n",
283+
" '__builtins__',\n",
284+
" '__cached__',\n",
285+
" '__doc__',\n",
286+
" '__file__',\n",
287+
" '__libdir',\n",
288+
" '__loader__',\n",
289+
" '__name__',\n",
290+
" '__oldir',\n",
291+
" '__osname',\n",
292+
" '__package__',\n",
293+
" '__phrasedLib',\n",
294+
" '__sharedLib',\n",
295+
" '__spec__',\n",
296+
" '__thisfile',\n",
297+
" '__version__',\n",
298+
" 'addDotXMLToModelSources',\n",
299+
" 'c_bool',\n",
300+
" 'c_char_p',\n",
301+
" 'c_double',\n",
302+
" 'c_int',\n",
303+
" 'c_long',\n",
304+
" 'c_ulong',\n",
305+
" 'cdll',\n",
306+
" 'clearReferencedSBML',\n",
307+
" 'convertFile',\n",
308+
" 'convertString',\n",
309+
" 'freeAllPhrased',\n",
310+
" 'getLastError',\n",
311+
" 'getLastErrorLine',\n",
312+
" 'getLastPhraSEDML',\n",
313+
" 'getLastSEDML',\n",
314+
" 'getPhrasedWarnings',\n",
315+
" 'inspect',\n",
316+
" 'os',\n",
317+
" 'platform',\n",
318+
" 'setReferencedSBML',\n",
319+
" 'setWorkingDirectory',\n",
320+
" 'setWriteSEDMLTimestamp']"
321+
]
322+
},
323+
"execution_count": 37,
324+
"metadata": {},
325+
"output_type": "execute_result"
326+
}
327+
],
328+
"source": [
329+
"dir(phrasedml.phrasedml)"
330+
]
272331
}
273332
],
274333
"metadata": {

tests/test_util.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import time
3+
import numpy as np
4+
import unittest
5+
6+
7+
IGNORE_TEST = False
8+
IS_PLOT = False
9+
10+
#############################
11+
# Tests
12+
#############################
13+
class TestFunctions(unittest.TestCase):
14+
15+
def testDummy(sefl):
16+
pass
17+
18+
19+
if __name__ == '__main__':
20+
unittest.main()

0 commit comments

Comments
 (0)