1name: flake8 Lint
 2
 3on:
 4  push:
 5    branches:
 6      - master
 7    paths: ['.github/workflows/python-lint.yml', '**/*.py']
 8  pull_request:
 9    types: [opened, synchronize, reopened]
10    paths: ['.github/workflows/python-lint.yml', '**/*.py']
11
12concurrency:
13  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
14  cancel-in-progress: true
15
16jobs:
17  flake8-lint:
18    runs-on: ubuntu-slim
19    name: Lint
20    steps:
21      - name: Check out source repository
22        uses: actions/checkout@v6
23      - name: Set up Python environment
24        uses: actions/setup-python@v6
25        with:
26          python-version: "3.11"
27      - name: flake8 Lint
28        uses: py-actions/flake8@v2
29        with:
30            plugins: "flake8-no-print"