Skip to content

Commit c639fb8

Browse files
add evidence project pipes
1 parent 152de50 commit c639fb8

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

econ_data_platform/econ_data_platform/assets/bi/__init__.py

Whitespace-only changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import dagster as dg
2+
import subprocess
3+
import os
4+
5+
6+
@dg.asset(compute_kind="evidence", group_name="reporting",)
7+
def evidence_dashboard():
8+
"""Dashboard built using Evidence showing metrics."""
9+
evidence_project_path = dg.file_relative_path(__file__, "../../evidence_project")
10+
subprocess.run(["npm", "--prefix", evidence_project_path, "install"])
11+
subprocess.run(["npm", "--prefix", evidence_project_path, "run", "sources"])
12+
subprocess.run(["npm", "--prefix", evidence_project_path, "run", "build"])

0 commit comments

Comments
 (0)