Skip to content

Commit bec6ce7

Browse files
authored
Update pipeline.yml
1 parent a7f9ff8 commit bec6ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ jobs:
9696
conda env create -n preprocessing -f source/envs/preprocessing.yaml -y
9797
conda env create -n processing -f source/envs/processing.yaml -y
9898
conda env create -n postprocessing -f source/envs/postprocessing.yaml -y
99-
echo -e 'from python_workflow_definition.cwl import write_workflow\n\n\nif __name__ == "__main__":\n with open("workflow.json") as f:\n content = json.load(f)\n node_lst = []\n for n in content["nodes"]:\n if "name" in n and n["name"] == "source_directory":\n n["value"] = os.path.abspath(n["value"])\n node_lst.append(n)\n content["nodes"] = node_lst\n with open("workflow.json", "w") as f:\n json.dump(content, f)\n write_workflow(file_name="workflow.json")' > test_with_cwl.py
99+
echo -e 'import os\nimport json\nfrom python_workflow_definition.cwl import write_workflow\n\n\nif __name__ == "__main__":\n with open("workflow.json") as f:\n content = json.load(f)\n node_lst = []\n for n in content["nodes"]:\n if "name" in n and n["name"] == "source_directory":\n n["value"] = os.path.abspath(n["value"])\n node_lst.append(n)\n content["nodes"] = node_lst\n with open("workflow.json", "w") as f:\n json.dump(content, f)\n write_workflow(file_name="workflow.json")' > test_with_cwl.py
100100
python test_with_cwl.py
101101
cwltool --preserve-environment=CONDA_EXE workflow.cwl workflow.yml

0 commit comments

Comments
 (0)