Skip to content
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
28 changes: 0 additions & 28 deletions .github/actions/download-demo-gcp/action.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
# Python dependencies. Dependabot discovers pyproject.toml and the
# pip-compile-generated requirements-lock.txt in this directory and
# auto-selects the pip-compile resolver.
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"

# Third-party actions referenced by workflow "uses:" pins.
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
2 changes: 1 addition & 1 deletion .github/workflows/bigquery_dry_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
id-token: 'write'
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- id: 'auth'
uses: 'google-github-actions/auth@v2'
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/lint_sqlfluff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,24 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
with:
# Full history so we can diff the PR branch against its base
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: install sqlfluff
run: "pip install sqlfluff==4.1.0"
- name: Get changed files
id: get_file_changes
uses: trilom/file-changes-action@v1.2.4
with:
output: ' '
- name: Get changed .sql files in mimic-iv concepts folder
id: get_files_to_lint
shell: bash
run: |
# Compose list of changed SQL files under mimic-iv/concepts and export to step output
raw="${{ steps.get_file_changes.outputs.files_modified }} ${{ steps.get_file_changes.outputs.files_added }}"
# Check for mimic-iv SQL files which may have changed
filtered="$(printf '%s' "$raw" | tr -s ' ' '\n' | grep -E '^mimic-iv/concepts/.*[.]sql$' || true)"
# Turn this into a space separated list for the next step
files="$(printf '%s' "$filtered" | tr -s '\n' ' ')"
# Added/modified (--diff-filter=AM) SQL files on the PR branch since
# it diverged from the base branch, restricted to mimic-iv/concepts.
files="$(git diff --name-only --diff-filter=AM \
"origin/${{ github.base_ref }}...HEAD" -- 'mimic-iv/concepts/' \
| grep -E '[.]sql$' | tr '\n' ' ' || true)"
echo "lintees=${files}" >> "$GITHUB_OUTPUT"

- name: Lint SQL files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
id-token: 'write'
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- id: 'auth'
uses: 'google-github-actions/auth@v2'
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ jobs:

steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- 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: Extract demo data to local folder
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease_bigquery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
id-token: 'write'
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- id: 'auth'
uses: 'google-github-actions/auth@v2'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Python dependencies
run: |
Expand Down
Loading