Skip to content

Higher splitting for Github Actions and Cache venv #6345

Higher splitting for Github Actions and Cache venv

Higher splitting for Github Actions and Cache venv #6345

Workflow file for this run

name: Linting
on: [pull_request, workflow_dispatch]
jobs:
flake8_linting:
runs-on: ubuntu-latest
name: Linting
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/pip
key: ${{ runner.os }}-pip-3.10-${{ hashFiles('devtools/dev-requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-3.10-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --no-index -r devtools/dev-requirements.txt
- name: flake8 Lint
uses: reviewdog/action-flake8@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review