Skip to content

Merge pull request #34 from DillonOLeary/dillonoleary/milestone2/brow… #44

Merge pull request #34 from DillonOLeary/dillonoleary/milestone2/brow…

Merge pull request #34 from DillonOLeary/dillonoleary/milestone2/brow… #44

# This workflow will install lint the Python code.
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Lint Python Data Pipeline Code
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_call:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
cd data-pipeline
poetry install --with dev
- name: Lint with pylint
run: |
cd data-pipeline
poetry run pylint $(git ls-files '*.py')