Bump pytest from 7.4.1 to 7.4.2 in /src #125
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
########################### | |
## Lint All SQL code | |
########################### | |
# | |
name: Lint SQL | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
src/requirements.txt | |
jobs: | |
lint: | |
name: Lint SQL | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
# Full git history is needed to get a proper list of changed files within `super-linter` | |
fetch-depth: 0 | |
- name: Set up Python 3.8 | |
uses: actions/[email protected] | |
with: | |
python-version: '3.8' | |
- name: Lint SQL code | |
if: | | |
github.event_name == 'workflow_dispatch' || | |
startsWith(github.event.pull_request.title,'Bump sqlfluff') == true | |
run: | | |
pip install -r src/requirements.txt | |
sqlfluff lint sql -p 4 |