2023-11-20 10:35:47 +00:00
|
|
|
name: flake8 Lint
|
|
|
|
|
2024-11-26 12:05:07 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths: ['.github/workflows/python-lint.yml', '**/*.py']
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
paths: ['.github/workflows/python-lint.yml', '**/*.py']
|
2023-11-20 10:35:47 +00:00
|
|
|
|
2024-03-22 17:15:06 +00:00
|
|
|
concurrency:
|
2024-04-04 16:30:53 +00:00
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
|
2024-03-22 17:15:06 +00:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-11-20 10:35:47 +00:00
|
|
|
jobs:
|
|
|
|
flake8-lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Lint
|
|
|
|
steps:
|
|
|
|
- name: Check out source repository
|
2024-04-03 18:01:13 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-20 10:35:47 +00:00
|
|
|
- name: Set up Python environment
|
2024-04-03 18:01:13 +00:00
|
|
|
uses: actions/setup-python@v5
|
2023-11-20 10:35:47 +00:00
|
|
|
with:
|
|
|
|
python-version: "3.11"
|
|
|
|
- name: flake8 Lint
|
|
|
|
uses: py-actions/flake8@v2
|
|
|
|
with:
|
2024-05-03 19:36:41 +00:00
|
|
|
plugins: "flake8-no-print"
|