generated from opensafely-core/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yaml
65 lines (58 loc) · 1.74 KB
/
project.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
56
57
58
59
60
61
62
63
64
65
version: "3.0"
expectations:
population_size: 1000
actions:
query:
run: >
sqlrunner:latest
--dummy-data-file analysis/dummy_rows.csv.gz
--output output/query/rows.csv.gz
--log-file output/query/log.json
analysis/query.sql
outputs:
highly_sensitive:
rows: output/query/rows.csv.gz
moderately_sensitive:
log: output/query/log.json
aggregate:
needs: [query]
run: python:latest python -m analysis.aggregate
outputs:
moderately_sensitive:
aggregates: output/aggregate/*_by_*.csv
plot_from_2016:
needs: [query, aggregate]
run: >
python:latest python -m analysis.plot
--from-date 2016-01-01
--output output/plot_from_2016
outputs:
moderately_sensitive:
plots: output/plot_from_2016/*.png
metadata: output/plot_from_2016/metadata.json
plot_from_2020:
needs: [query, aggregate]
run: >
python:latest python -m analysis.plot
--from-date 2020-02-01
--output output/plot_from_2020
outputs:
moderately_sensitive:
plots: output/plot_from_2020/*.png
metadata: output/plot_from_2020/metadata.json
plot_from_last_30_days:
needs: [query, aggregate]
run: >
python:latest python -m analysis.plot
--from-offset 30
--output output/plot_from_last_30_days
outputs:
moderately_sensitive:
plots: output/plot_from_last_30_days/*.png
metadata: output/plot_from_last_30_days/metadata.json
render_report:
needs: [query, plot_from_2016, plot_from_2020, plot_from_last_30_days]
run: python:latest python -m analysis.render_report
outputs:
moderately_sensitive:
report: output/render_report/report.html