Skip to content

ci

ci #289

Workflow file for this run

name: Lint Check
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
if: ${{ hashFiles('Pipfile.lock') }}
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
pipenv install --dev
- name: Install runtime dependencies
if: ${{ hashFiles('Pipfile.lock') }}
run: |
pipenv install --ignore-pipfile
- name: Lint with pylint
if: ${{ hashFiles('**/*.py') }}
run: |
find . -name "*.py" | xargs pipenv run pylint
- name: Format with black
if: ${{ hashFiles('**/*.py') }}
run: |
pipenv run black --diff --check .