Refactor arvbox federation test scripts, no issue #
[arvados.git] / sdk / cwl / tests / wf / runin-reqs-wf5.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 class: Workflow
6 cwlVersion: v1.0
7 $namespaces:
8   arv: "http://arvados.org/cwl#"
9 inputs:
10   count:
11     type: int[]
12     default: [1, 2, 3, 4]
13   script:
14     type: File
15     default:
16       class: File
17       location: check_mem.py
18 outputs:
19   out: []
20 requirements:
21   SubworkflowFeatureRequirement: {}
22   ScatterFeatureRequirement: {}
23   InlineJavascriptRequirement: {}
24   StepInputExpressionRequirement: {}
25 hints:
26   DockerRequirement:
27     dockerPull: arvados/jobs:1.4.0.20190604172024
28 steps:
29   substep:
30     in:
31       count: count
32       script: script
33     out: []
34     hints:
35       - class: arv:RunInSingleContainer
36       - class: arv:APIRequirement
37     scatter: count
38     run:
39       class: Workflow
40       id: mysub
41       inputs:
42         count: int
43         script: File
44       outputs: []
45       steps:
46         sleep1:
47           in:
48             count: count
49             script: script
50           out: []
51           run:
52             class: CommandLineTool
53             id: subtool
54             hints:
55               - class: ResourceRequirement
56                 ramMin: 32
57             inputs:
58               count:
59                 type: int
60               script: File
61             outputs: []
62             arguments: [python, $(inputs.script), "128"]