Skip to content

Commit 872eefd

Browse files
authored
Merge pull request MIT-LCP#2022 from MIT-LCP/alistair/dependabot_config
Add config for dependabot; bump/clean up gh actions
2 parents dcfa216 + 42b8131 commit 872eefd

8 files changed

Lines changed: 28 additions & 47 deletions

File tree

.github/actions/download-demo-gcp/action.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
updates:
3+
# Python dependencies. Dependabot discovers pyproject.toml and the
4+
# pip-compile-generated requirements-lock.txt in this directory and
5+
# auto-selects the pip-compile resolver.
6+
- package-ecosystem: "pip"
7+
directory: "/"
8+
schedule:
9+
interval: "weekly"
10+
11+
# Third-party actions referenced by workflow "uses:" pins.
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"

.github/workflows/bigquery_dry_run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
id-token: 'write'
1818
steps:
1919
- name: Check out repository code
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- id: 'auth'
2323
uses: 'google-github-actions/auth@v2'

.github/workflows/lint_sqlfluff.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,24 @@ jobs:
99
steps:
1010
- name: checkout
1111
uses: actions/checkout@v4
12+
with:
13+
# Full history so we can diff the PR branch against its base
14+
fetch-depth: 0
1215
- name: Install Python
1316
uses: actions/setup-python@v5
1417
with:
1518
python-version: "3.12"
1619
- name: install sqlfluff
1720
run: "pip install sqlfluff==4.1.0"
18-
- name: Get changed files
19-
id: get_file_changes
20-
uses: trilom/file-changes-action@v1.2.4
21-
with:
22-
output: ' '
2321
- name: Get changed .sql files in mimic-iv concepts folder
2422
id: get_files_to_lint
2523
shell: bash
2624
run: |
27-
# Compose list of changed SQL files under mimic-iv/concepts and export to step output
28-
raw="${{ steps.get_file_changes.outputs.files_modified }} ${{ steps.get_file_changes.outputs.files_added }}"
29-
# Check for mimic-iv SQL files which may have changed
30-
filtered="$(printf '%s' "$raw" | tr -s ' ' '\n' | grep -E '^mimic-iv/concepts/.*[.]sql$' || true)"
31-
# Turn this into a space separated list for the next step
32-
files="$(printf '%s' "$filtered" | tr -s '\n' ' ')"
25+
# Added/modified (--diff-filter=AM) SQL files on the PR branch since
26+
# it diverged from the base branch, restricted to mimic-iv/concepts.
27+
files="$(git diff --name-only --diff-filter=AM \
28+
"origin/${{ github.base_ref }}...HEAD" -- 'mimic-iv/concepts/' \
29+
| grep -E '[.]sql$' | tr '\n' ' ' || true)"
3330
echo "lintees=${files}" >> "$GITHUB_OUTPUT"
3431
3532
- name: Lint SQL files

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
id-token: 'write'
1616
steps:
1717
- name: Check out repository code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- id: 'auth'
2121
uses: 'google-github-actions/auth@v2'

.github/workflows/mysql.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ jobs:
1111

1212
steps:
1313
- name: Check out repository code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

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

2219
- name: Extract demo data to local folder
2320
run: |

.github/workflows/prerelease_bigquery.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
id-token: 'write'
1515
steps:
1616
- name: Check out repository code
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- id: 'auth'
2020
uses: 'google-github-actions/auth@v2'

.github/workflows/sqlite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Check out repository code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Python dependencies
1818
run: |

0 commit comments

Comments
 (0)