-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkflow_v1.yaml
55 lines (49 loc) · 1.32 KB
/
workflow_v1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Workflow API version
apiVersion: io.orquestra.workflow/1.0.0
# Prefix for workflow ID
name: rp-hello-test
# List resources needed by workflow.
imports:
# A resource named `welcome-to-orquestra` that is a public git repo. All the fields here are required except branch, which defaults to master.
- name: welcome-to-orquestra
type: git
parameters:
repository: "git@github.com:zapatacomputing/tutorial-0-welcome.git"
branch: "master"
- name: ztransform
type: git
parameters:
repository: "git@github.com:zapatacomputing/tutorial-0-ztransform.git"
branch: "master"
steps:
# This step runs the `welcome` function in the `welcome-to-orquestra` resource
- name: greeting
config:
runtime:
language: python3
imports: [welcome-to-orquestra]
parameters:
file: welcome-to-orquestra/src/python/orquestra/welcome.py
function: welcome
outputs:
- name: welcome
type: message
- name: transform-welcome
passed: [greeting]
config:
runtime:
language: python3
customImage: zapatacomputing/qe-psi4
imports: [ztransform]
parameters:
file: ztransform/tasks/ztransformation.py
function: z_transformation
inputs:
- message: ((greeting.welcome))
type: message
outputs:
- name: zelcome
type: zessage
types:
- message
- zessage