-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76e85eb
commit 7daeb02
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
from sh import git | ||
from sh import git, pytest, tee | ||
|
||
|
||
def update_submodule(): | ||
"""Update the `specification` submodule from GitHub.""" | ||
git.submodule.update('--remote', '--init', '--recursive') | ||
|
||
|
||
def ci(): | ||
"""Run CI.""" | ||
tee( | ||
'tests/coverage/pytest-coverage.txt', | ||
_in=pytest( | ||
'tests', | ||
junitxml='tests/coverage/pytest.xml', | ||
cov_report=['', 'html:tests/coverage/html'], | ||
cov='yaml_ld', | ||
_piped=True, | ||
_ok_code={0, 1}, | ||
), | ||
) |
7daeb02
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.
7daeb02
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.
7daeb02
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.
7daeb02
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.