File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 pull_request_review :
1414 types : [submitted]
1515 workflow_dispatch :
16+ # TEMP: test on push to branch
17+ push :
18+ branches :
19+ - alistair/more_gh_action_shenanigans
1620
1721jobs :
1822 psql :
19- if : github.event_name == 'workflow_dispatch' || github.event.review.state == 'approved'
23+ # TEMP: 'push' added to run on branch push
24+ if : github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.review.state == 'approved'
2025 uses : ./.github/workflows/build-psql.yml
2126
2227 duckdb :
23- if : github.event_name == 'workflow_dispatch' || github.event.review.state == 'approved'
28+ # TEMP: 'push' added to run on branch push
29+ if : github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.review.state == 'approved'
2430 uses : ./.github/workflows/build-duckdb.yml
2531
2632 psql-concepts :
Original file line number Diff line number Diff line change @@ -2,11 +2,16 @@ name: mysql demo db build
22on :
33 pull_request_review :
44 types : [submitted]
5+ # TEMP: test on push to branch
6+ push :
7+ branches :
8+ - alistair/more_gh_action_shenanigans
59
610jobs :
711 mimic-iv-mysql :
812 # only run if PR is approved
9- if : github.event.review.state == 'approved'
13+ # TEMP: also run on push
14+ if : github.event_name == 'push' || github.event.review.state == 'approved'
1015 runs-on : ubuntu-22.04
1116
1217 steps :
1823
1924 - name : Extract demo data to local folder
2025 run : |
21- mv hosp/*.csv.gz ./
22- mv icu/*.csv.gz ./
23- mv ed/*.csv.gz ./
26+ # download-demo provides the gzipped CSVs under hosp/, icu/ and ed/.
27+ # Flatten every nested CSV into the working directory, where the mysql
28+ # load.sql scripts expect them (e.g. LOAD DATA INFILE 'admissions.csv').
29+ # Using find keeps this robust to how deeply the files are nested.
30+ find . -mindepth 2 -name '*.csv.gz' -exec mv -t ./ {} +
2431 gzip -d *.csv.gz
2532
2633 - name : Start MySQL service
Original file line number Diff line number Diff line change @@ -2,11 +2,16 @@ name: sqlite demo db build
22on :
33 pull_request_review :
44 types : [submitted]
5+ # TEMP: test on push to branch
6+ push :
7+ branches :
8+ - alistair/more_gh_action_shenanigans
59
610jobs :
711 mimic-iv-sqlite :
812 # only run if PR is approved
9- if : github.event.review.state == 'approved'
13+ # TEMP: also run on push
14+ if : github.event_name == 'push' || github.event.review.state == 'approved'
1015 runs-on : ubuntu-latest
1116 container : python:3.10
1217
You can’t perform that action at this time.
0 commit comments