Skip to content

Commit 2e4797e

Browse files
committed
Add CI
Signed-off-by: Romain Keramitas <[email protected]>
1 parent 4aef3a1 commit 2e4797e

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: python
2+
dist: bionic
3+
python:
4+
- "3.6"
5+
- "3.7"
6+
script:
7+
- python3 -m unittest discover

test.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import json
2+
from pathlib import Path
3+
import unittest
4+
5+
class TestSequenceFunctions(unittest.TestCase):
6+
7+
def setUp(self):
8+
self.index = json.load("index.json")
9+
self.root = Path(".")
10+
11+
def test_meta_dir(self):
12+
for model_kind in self.index["meta"]:
13+
unittest.assertTrue((self.root / model_kind).exists())
14+
15+
if __name__ == '__main__':
16+
unittest.main()

0 commit comments

Comments
 (0)