Skip to content

Commit 176be33

Browse files
authored
Merge pull request #1506 from MIT-LCP/gh_action_debug
fix gh actions
2 parents 68cf860 + eae7580 commit 176be33

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

.github/workflows/duckdb.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
types: [submitted]
55

66
jobs:
7-
mimic-iv-sqlite:
7+
mimic-iv-duckdb:
88
# only run if PR is approved
99
if: github.event.review.state == 'approved'
1010
runs-on: ubuntu-20.04
@@ -13,11 +13,13 @@ jobs:
1313
- name: Check out repository code
1414
uses: actions/checkout@v3
1515

16-
- name: Install dependencies and download CLI
16+
- name: Download duckdb CLI
1717
run: |
18-
apt-get install unzip
1918
wget https://github.com/duckdb/duckdb/releases/download/v0.6.1/duckdb_cli-linux-amd64.zip
2019
unzip duckdb_cli-linux-amd64.zip
20+
echo "$HOME/.local/bin" >> $GITHUB_PATH
21+
mkdir -p "$HOME/.local/bin"
22+
mv duckdb "$HOME/.local/bin/duckdb"
2123
2224
- name: Download demo data
2325
uses: ./.github/actions/download-demo

.github/workflows/mysql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121

2222
- name: Extract demo data to local folder
2323
run: |
24-
mv demo/hosp/*.csv.gz ./
25-
mv demo/icu/*.csv.gz ./
26-
mv demo/ed/*.csv.gz ./
24+
mv hosp/*.csv.gz ./
25+
mv icu/*.csv.gz ./
26+
mv ed/*.csv.gz ./
2727
gzip -d *.csv.gz
2828
2929
- name: Start MySQL service

.github/workflows/psql.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ jobs:
3030

3131
- name: Download demo data
3232
uses: ./.github/actions/download-demo
33-
with:
34-
gcp-project-id: ${{ secrets.GCP_PROJECT_ID }}
35-
gcp-sa-key: ${{ secrets.GCP_SA_KEY }}
3633

3734
- name: Install postgresql-client
3835
run: |
@@ -43,7 +40,7 @@ jobs:
4340
run: |
4441
echo "Loading data into psql."
4542
psql -q -h $POSTGRES_HOST -U postgres -f ${BUILDCODE_PATH}/create.sql
46-
psql -q -h $POSTGRES_HOST -U postgres -v mimic_data_dir=demo -f ${BUILDCODE_PATH}/load_gz.sql
43+
psql -q -h $POSTGRES_HOST -U postgres -f ${BUILDCODE_PATH}/load_gz.sql
4744
echo "Validating build."
4845
psql -h $POSTGRES_HOST -U postgres -f ${BUILDCODE_PATH}/validate_demo.sql > results
4946
@@ -76,7 +73,7 @@ jobs:
7673
run: |
7774
echo "Loading data into psql."
7875
psql -q -h $POSTGRES_HOST -U postgres -f ${BUILDCODE_PATH}/create.sql
79-
psql -q -h $POSTGRES_HOST -U postgres -v mimic_data_dir=demo/ed -f ${BUILDCODE_PATH}/load_gz.sql
76+
psql -q -h $POSTGRES_HOST -U postgres -v mimic_data_dir=ed/ -f ${BUILDCODE_PATH}/load_gz.sql
8077
echo "Validating build."
8178
psql -h $POSTGRES_HOST -U postgres -f ${BUILDCODE_PATH}/validate_demo.sql > results
8279

.github/workflows/sqlite.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ jobs:
2424
2525
- name: Download demo data
2626
uses: ./.github/actions/download-demo
27-
with:
28-
gcp-project-id: ${{ secrets.GCP_PROJECT_ID }}
29-
gcp-sa-key: ${{ secrets.GCP_SA_KEY }}
3027

3128
- name: Load icu/hosp data into SQLite
3229
run: |

0 commit comments

Comments
 (0)