build: Speed up CI by only running commands we need #393
Workflow file for this run
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: Validate SQL format | |
on: | |
- pull_request | |
jobs: | |
format: | |
name: Validate SQL format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.8.x" | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Format SQL | |
run: | | |
sqlfmt models macros --check |