Skip to content

Update actions/cache action to v3.4.0 #1058

Update actions/cache action to v3.4.0

Update actions/cache action to v3.4.0 #1058

Workflow file for this run

name: Run linters
on:
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot'
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/[email protected]
id: pip-cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
- name: Install dependencies
run: |
pip install -U pip
pip install flake8==3.8.4
- name: Install black
if: ${{ matrix.python-version != '3.5' }}
run: |
pip install black
- name: Run Lint
uses: wearerequired/[email protected]
with:
github_token: ${{ secrets.github_token }}
black: ${{ matrix.python-version != '3.5' }}
flake8: true
git_email: "github-action[bot]@github.com"
auto_fix: ${{ matrix.python-version != '3.5' }}