ci #289
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: 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 . |