Skip to content

Commit

Permalink
fix coverage (#28)
Browse files Browse the repository at this point in the history
* fix coverage

* update
  • Loading branch information
goodwanghan authored May 11, 2021
1 parent 829b8b4 commit 299115d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
python-version: '3.8'
- name: Install dependencies
run: make devenv
- name: Build and publish
Expand Down
23 changes: 6 additions & 17 deletions adagio/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,19 @@


class AdagioError(Exception):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
pass


class WorkflowBug(AdagioError):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
pass


class CompileError(AdagioError):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
pass


class DependencyDefinitionError(CompileError):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
pass


class DependencyNotDefinedError(DependencyDefinitionError):
Expand All @@ -28,8 +24,7 @@ def __init__(self, name: str, expected: Iterable[str], actual: Iterable[str]):


class WorkflowRuntimeError(AdagioError):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
pass


class AbortedError(WorkflowRuntimeError):
Expand All @@ -38,10 +33,4 @@ def __init__(self, *args, **kwargs):


class SkippedError(WorkflowRuntimeError):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)


def assert_on_compile(bool_expr: bool, msg: str) -> None:
if not bool_expr:
raise CompileError(msg)
pass

0 comments on commit 299115d

Please sign in to comment.