generated from opensafely-core/repo-template
/
project.yaml
39 lines (36 loc) · 947 Bytes
/
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
version: "3.0"
expectations:
population_size: 1000
actions:
query:
run: >
sqlrunner:latest
--output output/rows.csv
analysis/query.sql
outputs:
moderately_sensitive:
rows: output/rows.csv
make-html-reports:
# --execute
# execute notebooks before converting them to HTML reports
# --no-input
# exclude input cells and output prompts from HTML reports
# --to=html
# convert notebooks to HTML reports (not e.g. to PDF reports)
# --template basic
# use the basic (unstyled) template for HTML reports
# --output-dir=output
# write HTML reports to the `output` directory
run: >
python:latest jupyter nbconvert
--execute
--no-input
--to=html
--template basic
--output-dir=output
analysis/*.ipynb
needs:
- query
outputs:
moderately_sensitive:
reports: output/*.html