Skip to content

Commit 1825ff3

Browse files
committed
add sqlite ga workflow
1 parent 7a98493 commit 1825ff3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/sqlite.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: sqlite demo db build
2+
on:
3+
pull_request_review:
4+
types: [submitted]
5+
6+
jobs:
7+
mimic-iv-sqlite:
8+
# only run if PR is approved
9+
if: github.event.review.state == 'approved'
10+
runs-on: ubuntu-20.04
11+
12+
steps:
13+
- name: Check out repository code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Python dependencies
22+
run: |
23+
pip install pandas
24+
25+
- name: Download demo data
26+
uses: ./.github/actions/download-demo
27+
with:
28+
gcp-project-id: ${{ secrets.GCP_PROJECT_ID }}
29+
gcp-sa-key: ${{ secrets.GCP_SA_KEY }}
30+
31+
- name: Load icu/hosp data into SQLite
32+
run: |
33+
echo "Running SQLite build."
34+
python ${BUILDCODE_PATH}/import.py
35+
36+
echo `md5sum mimic4.db`
37+
38+
env:
39+
BUILDCODE_PATH: mimic-iv/buildmimic/sqlite

0 commit comments

Comments
 (0)