Skip to content

Commit 239c349

Browse files
committed
temporarily add triggering of ci on push to branch
1 parent 49d0de2 commit 239c349

3 files changed

Lines changed: 25 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@ on:
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

1721
jobs:
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:

.github/workflows/mysql.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@ name: mysql demo db build
22
on:
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

610
jobs:
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:
@@ -18,9 +23,11 @@ jobs:
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

.github/workflows/sqlite.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@ name: sqlite demo db build
22
on:
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

610
jobs:
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

0 commit comments

Comments
 (0)