Skip to content

Commit 000318b

Browse files
committed
add action to test new bq auth method
1 parent e8658d5 commit 000318b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/test_bq_auth.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Generate tables on BigQuery
2+
3+
on:
4+
push:
5+
branches: [alistair/test_bq_auth]
6+
7+
env:
8+
MIMIC_IV_VERSION: 3_1
9+
10+
jobs:
11+
create-tables:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out repository code
15+
uses: actions/checkout@v3
16+
17+
- id: 'auth'
18+
uses: 'google-github-actions/auth@v2'
19+
with:
20+
service_account: '[email protected]'
21+
workload_identity_provider: 'projects/569883598760/locations/global/workloadIdentityPools/github/providers/mimic-code'
22+
23+
- name: 'Set up Cloud SDK'
24+
uses: 'google-github-actions/setup-gcloud@v0'
25+
26+
- name: Test making a table with bigquery
27+
run: |
28+
echo "Generating tables on BigQuery"
29+
bq query --use_legacy_sql=False 'select * from physionet-data.mimiciv_icu.d_items limit 1'

0 commit comments

Comments
 (0)