|
@@ -6,7 +6,6 @@ import logging
|
|
|
import os
|
|
import os
|
|
|
|
|
|
|
|
from contextlib import contextmanager
|
|
from contextlib import contextmanager
|
|
|
-from enum import Enum, auto
|
|
|
|
|
from functools import reduce
|
|
from functools import reduce
|
|
|
from types import SimpleNamespace, NoneType
|
|
from types import SimpleNamespace, NoneType
|
|
|
from typing import Annotated, Any, Callable, Iterator, Literal, Self, final, overload
|
|
from typing import Annotated, Any, Callable, Iterator, Literal, Self, final, overload
|
|
@@ -14,24 +13,13 @@ from typing import Annotated, Any, Callable, Iterator, Literal, Self, final, ove
|
|
|
from pydantic import BaseModel, Field
|
|
from pydantic import BaseModel, Field
|
|
|
from pydantic_core import PydanticUndefined
|
|
from pydantic_core import PydanticUndefined
|
|
|
|
|
|
|
|
|
|
+from cipy.status import Status
|
|
|
|
|
+
|
|
|
type Scalar = bool | int | float | str
|
|
type Scalar = bool | int | float | str
|
|
|
type Computed = Ref | Factory
|
|
type Computed = Ref | Factory
|
|
|
type Value = Scalar | Computed
|
|
type Value = Scalar | Computed
|
|
|
|
|
|
|
|
|
|
|
|
|
-class Status(Enum):
|
|
|
|
|
- """Result status of a runner, higher numbers take priority"""
|
|
|
|
|
-
|
|
|
|
|
- NOT_RUN = auto()
|
|
|
|
|
- SKIPPED = auto()
|
|
|
|
|
- SUCCESS = auto()
|
|
|
|
|
- FAILURE = auto()
|
|
|
|
|
- CANCELLED = auto()
|
|
|
|
|
-
|
|
|
|
|
- def __ior__(self, other: Status) -> Status:
|
|
|
|
|
- return self if self.value > other.value else other
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
class Inputs(BaseModel):
|
|
class Inputs(BaseModel):
|
|
|
"""Stub class describing input arguments"""
|
|
"""Stub class describing input arguments"""
|
|
|
|
|
|