Skip to content

Merge pull request #200 from microsoft/tech-connect-sql #417

Merge pull request #200 from microsoft/tech-connect-sql

Merge pull request #200 from microsoft/tech-connect-sql #417

Workflow file for this run

name: PyLint
on:
push:
paths:
- 'src/api/python/**'
- 'infra/scripts/**/*.py'
- '.github/workflows/pylint.yml'
- '.flake8'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r src/api/python/requirements.txt
pip install flake8 # Ensure flake8 is installed explicitly
- name: Run flake8 and pylint
run: |
flake8 --config=.flake8 src/api/python # Specify the directory to lint