Skip to content

Bump actions/cache from 2 to 4 #112

Bump actions/cache from 2 to 4

Bump actions/cache from 2 to 4 #112

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@v2
- name: Set up Python 3.8
uses: actions/[email protected]
with:
python-version: 3.8
- name: Cache Pip
uses: actions/cache@v4
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