Basic testing of the queries in src/queries #34
This file contains 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: SQLFluff lint the queries | |
run-name: Basic testing of the queries in src/queries | |
on: | |
pull_request: | |
paths: | |
- 'src/queries/**' | |
workflow_dispatch: | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install sqlfluff | |
- name: Run Tests | |
run: cd src/queries && sqlfluff lint . |