-
Notifications
You must be signed in to change notification settings - Fork 11
Add CI [WIP] #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add CI [WIP] #30
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
language: python | ||
dist: bionic | ||
python: | ||
- "3.6" | ||
- "3.7" | ||
script: | ||
- python3 -m unittest discover | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to additionally check that the generated changes match the current repository state - that is, avoid Eiso moments in the future. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, anyway I want to check more then the current tests, but gonna update modelforge first |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import json | ||
from pathlib import Path | ||
import unittest | ||
|
||
class TestIndexSanity(unittest.TestCase): | ||
|
||
def setUp(self): | ||
self.root = Path(".") | ||
with (self.root / "index.json").open() as fin: | ||
self.index = json.load(fin) | ||
|
||
def test_meta_dir(self): | ||
for model_kind in self.index["meta"]: | ||
self.assertTrue((self.root / model_kind).exists()) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's require 3.8 and only 3.8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍