|
@@ -7,9 +7,8 @@ import os
|
|
|
import tempfile
|
|
import tempfile
|
|
|
|
|
|
|
|
from contextlib import contextmanager
|
|
from contextlib import contextmanager
|
|
|
-from typing import Any, Callable, Iterable, Iterator, TypeVar, overload
|
|
|
|
|
|
|
+from typing import Any, Callable, Iterator, TypeVar
|
|
|
|
|
|
|
|
-from colored import Style
|
|
|
|
|
from dotenv import dotenv_values
|
|
from dotenv import dotenv_values
|
|
|
|
|
|
|
|
import cipy.common
|
|
import cipy.common
|
|
@@ -77,12 +76,19 @@ def ipc(func: Run[Action]) -> Run[Action]:
|
|
|
|
|
|
|
|
@contextmanager
|
|
@contextmanager
|
|
|
def logging_group(self: Action, message: str, *args: Any) -> Iterator[None]:
|
|
def logging_group(self: Action, message: str, *args: Any) -> Iterator[None]:
|
|
|
|
|
+ """
|
|
|
|
|
+ Create a 'group' for logging messages under, allows for a GUI to apply cleaner formatting
|
|
|
|
|
+ """
|
|
|
|
|
+
|
|
|
self.logger.info("##[group] " + message, *args)
|
|
self.logger.info("##[group] " + message, *args)
|
|
|
yield
|
|
yield
|
|
|
self.logger.info("##[endgroup]")
|
|
self.logger.info("##[endgroup]")
|
|
|
|
|
|
|
|
|
|
|
|
|
def preamble(func: Run[Action]):
|
|
def preamble(func: Run[Action]):
|
|
|
|
|
+ """
|
|
|
|
|
+ Log a preamble upon entering this Action.run override, which records the arguments to the Action
|
|
|
|
|
+ """
|
|
|
|
|
|
|
|
@functools.wraps(func)
|
|
@functools.wraps(func)
|
|
|
def wrapper(self: Action, context: Context) -> Status:
|
|
def wrapper(self: Action, context: Context) -> Status:
|