diff --git a/code/runner_script.py b/code/runner_script.py index 371d0e1..2001551 100644 --- a/code/runner_script.py +++ b/code/runner_script.py @@ -9,11 +9,14 @@ class Pipeline(BaseModel): script: List[str] class RunnerScript(BaseModel): - pipelines: List[Dict[str, Pipeline]] + pipelines: Dict[str, Pipeline] if __name__ == '__main__': path = Path(__file__).parent.parent / 'runner_script.yml' with open(path, 'r') as fh: script = yaml.safe_load(fh) runner_script = RunnerScript.parse_obj(script) - print(runner_script) \ No newline at end of file + print(runner_script) + for k, v in runner_script.pipelines.items(): + print(k) + print(v) \ No newline at end of file