1#!/usr/bin/env cwl-runner
2### Test harness for airnow.cwl
3
4cwlVersion: v1.2
5class: Workflow
6
7requirements:
8 InlineJavascriptRequirement: {}
9 StepInputExpressionRequirement: {}
10 SubworkflowFeatureRequirement: {}
11
12
13# All inputs of original pipeline, remove what is not needed
14inputs:
15 api-key:
16 doc: API key for AirNow
17 type: string
18 connection_name:
19 doc: The name of the section in the database.ini file
20 type: string
21 database:
22 doc: Path to database connection file, usually database.ini
23 type: File
24 from:
25 doc: Start date for downolading, in YYYY-MM-DD format
26 type: string
27 parameter_code:
28 doc: 'Parameter code. Either a numeric code (e.g. 88101, 44201)
29
30 or symbolic name (e.g. PM25, NO2).
31
32 See more: [AQS Code List](https://www.epa.gov/aqs/aqs-code-list)
33
34 '
35 type: string
36 proxy:
37 default: ''
38 doc: HTTP/HTTPS Proxy if required
39 type: string?
40 table:
41 doc: Name of the table to be created in the database
42 type: string
43 test_script:
44 doc: File containing SQL test script
45 type: File
46 to:
47 doc: End date for downolading, in YYYY-MM-DD format
48 type: string
49 year:
50 type: int
51
52
53steps:
54 execute:
55 run: airnow.cwl
56 in:
57 proxy: proxy
58 api-key: api-key
59 database: database
60 connection_name: connection_name
61 from: from
62 to: to
63 parameter_code: parameter_code
64 table: table
65 year: year
66 out:
67 - shapes_data
68 - download_log
69 - ingest_log
70 - index_log
71 - vacuum_log
72 - download_data
73 - model
74
75 verify:
76 run: run_test.cwl
77 in:
78 database: database
79 connection_name: connection_name
80 script: test_script
81 depends_on: execute/model
82 out:
83 - log
84 - errors
85
86outputs:
87## Generated by nsaph/util/cwl_collect_outputs.py from airnow.cwl:
88 execute_shapes_data:
89 type: File[]
90 outputSource: execute/shapes_data
91 execute_download_log:
92 type: File
93 outputSource: execute/download_log
94 execute_ingest_log:
95 type: File
96 outputSource: execute/ingest_log
97 execute_index_log:
98 type: File
99 outputSource: execute/index_log
100 execute_vacuum_log:
101 type: File
102 outputSource: execute/vacuum_log
103 execute_download_data:
104 type: File
105 outputSource: execute/download_data
106 execute_model:
107 type: File
108 outputSource: execute/model
109## Generated by nsaph/util/cwl_collect_outputs.py from run_test.cwl:
110 verify_log:
111 type: File
112 outputSource: verify/log
113 verify_errors:
114 type: File
115 outputSource: verify/errors