Skip to content

Bump actions/checkout from 2 to 4 #97

Bump actions/checkout from 2 to 4

Bump actions/checkout from 2 to 4 #97

Workflow file for this run

name: Python
on:
push:
paths:
- "**/*.py"
- ".github/workflows/python.yaml"
- "requirements.txt"
- "requirements-test.txt"
- "pyproject.toml"
jobs:
lint-python:
name: Lint Python Code
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Clone Repo
uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/[email protected]
with:
python-version: 3.8
- name: Cache Pip
uses: actions/[email protected]
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('requirements.txt', 'requirements-test.txt') }}
- name: Setup
run: |
pip install --requirement requirements.txt --requirement requirements-test.txt
- name: Lint Python Code
run: |
isort --check --diff .
black --check --diff .
find . -name "*.py" | xargs pylint