ci: extend sqlglot syntax check to mimic-iii concepts #70
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: BigQuery SQL syntax check via sqlglot | |
| on: | |
| pull_request: | |
| paths: | |
| - 'mimic-iv/concepts/**' | |
| - 'mimic-iii/concepts/**' | |
| - 'src/mimic_utils/**' | |
| - '.github/scripts/check_sql_syntax.py' | |
| - '.github/workflows/sql_syntax_check.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| syntax-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.12" | |
| - name: Install locked dependencies | |
| run: pip install -r requirements-lock.txt | |
| - name: Install package | |
| run: pip install -e . --no-deps | |
| - name: Parse concept SQL with sqlglot | |
| run: python .github/scripts/check_sql_syntax.py mimic-iv/concepts mimic-iii/concepts |