Skip to content

Commit d6915e0

Browse files
committed
dynamically create test scripts
1 parent d4d09f0 commit d6915e0

File tree

4 files changed

+3
-25
lines changed

4 files changed

+3
-25
lines changed

.ci_support/test_with_aiida.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

.ci_support/test_with_jobflow.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

.ci_support/test_with_pyiron.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
shell: bash -l {0}
2323
run: |
2424
verdi presto --profile-name pwd
25-
cp .ci_support/test_with_aiida.py .
25+
echo -e 'from aiida import load_profile\nload_profile()\n\nfrom python_workflow_definition.aiida import load_workflow_json\n\n\nif __name__ == "__main__":\n workgraph = load_workflow_json(file_name="workflow.json")\n workgraph.run()" > test_with_aiida.py
2626
python test_with_aiida.py
2727
2828
jobflow:
@@ -40,7 +40,7 @@ jobs:
4040
- name: Test
4141
shell: bash -l {0}
4242
run: |
43-
cp .ci_support/test_with_jobflow.py .
43+
echo -e 'from jobflow.managers.local import run_locally\nfrom python_workflow_definition.jobflow import load_workflow_json\n\n\nif __name__ == "__main__":\n flow = load_workflow_json(file_name="workflow.json")\n print(run_locally(flow))" > test_with_jobflow.py .
4444
python test_with_jobflow.py
4545
4646
pyiron:
@@ -58,5 +58,5 @@ jobs:
5858
- name: Test
5959
shell: bash -l {0}
6060
run: |
61-
cp .ci_support/test_with_pyiron.py .
61+
echo -e 'from python_workflow_definition.pyiron_base import load_workflow_json\n\n\nif __name__ == "__main__":\n delayed_object_lst = load_workflow_json(file_name="workflow.json")\n print(delayed_object_lst[-1].pull())' > test_with_pyiron.py .
6262
python test_with_pyiron.py

0 commit comments

Comments
 (0)