Skip to content

Bump duckdb from 1.4.5 to 1.5.4 #201

Bump duckdb from 1.4.5 to 1.5.4

Bump duckdb from 1.4.5 to 1.5.4 #201

Workflow file for this run

name: SQLFluff
on:
- pull_request
jobs:
lint-mimic-iv:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v7
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 .sql files in mimic-iv concepts folder
id: get_files_to_lint
shell: bash
run: |
# 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
id: sqlfluff_json
if: steps.get_files_to_lint.outputs.lintees != ''
shell: bash
run: sqlfluff lint --format github-annotation --annotation-level failure --nofail ${{ steps.get_files_to_lint.outputs.lintees }} > annotations.json
- name: Annotate
uses: yuzutech/annotations-action@v0.6.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
title: "SQLFluff Lint"
input: "./annotations.json"