Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix gh actions #1506

Merged
merged 1 commit into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix gh actions
  • Loading branch information
alistairewj committed Mar 23, 2023
commit eae758000e6b40e7643919c1fe6d4d5ddac9d678
8 changes: 5 additions & 3 deletions .github/workflows/duckdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [submitted]

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

- name: Install dependencies and download CLI
- name: Download duckdb CLI
run: |
apt-get install unzip
wget https://github.com/duckdb/duckdb/releases/download/v0.6.1/duckdb_cli-linux-amd64.zip
unzip duckdb_cli-linux-amd64.zip
echo "$HOME/.local/bin" >> $GITHUB_PATH
mkdir -p "$HOME/.local/bin"
mv duckdb "$HOME/.local/bin/duckdb"

- name: Download demo data
uses: ./.github/actions/download-demo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:

- name: Extract demo data to local folder
run: |
mv demo/hosp/*.csv.gz ./
mv demo/icu/*.csv.gz ./
mv demo/ed/*.csv.gz ./
mv hosp/*.csv.gz ./
mv icu/*.csv.gz ./
mv ed/*.csv.gz ./
gzip -d *.csv.gz

- name: Start MySQL service
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/psql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:

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

- name: Install postgresql-client
run: |
Expand All @@ -43,7 +40,7 @@ jobs:
run: |
echo "Loading data into psql."
psql -q -h $POSTGRES_HOST -U postgres -f ${BUILDCODE_PATH}/create.sql
psql -q -h $POSTGRES_HOST -U postgres -v mimic_data_dir=demo -f ${BUILDCODE_PATH}/load_gz.sql
psql -q -h $POSTGRES_HOST -U postgres -f ${BUILDCODE_PATH}/load_gz.sql
echo "Validating build."
psql -h $POSTGRES_HOST -U postgres -f ${BUILDCODE_PATH}/validate_demo.sql > results

Expand Down Expand Up @@ -76,7 +73,7 @@ jobs:
run: |
echo "Loading data into psql."
psql -q -h $POSTGRES_HOST -U postgres -f ${BUILDCODE_PATH}/create.sql
psql -q -h $POSTGRES_HOST -U postgres -v mimic_data_dir=demo/ed -f ${BUILDCODE_PATH}/load_gz.sql
psql -q -h $POSTGRES_HOST -U postgres -v mimic_data_dir=ed/ -f ${BUILDCODE_PATH}/load_gz.sql
echo "Validating build."
psql -h $POSTGRES_HOST -U postgres -f ${BUILDCODE_PATH}/validate_demo.sql > results

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ jobs:

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

- name: Load icu/hosp data into SQLite
run: |
Expand Down