Skip to content

Commit 8527f08

Browse files
authored
Create python-lint.yml
1 parent 29950bb commit 8527f08

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/python-lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: flake8 Lint
2+
3+
on:
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+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
flake8-lint:
18+
runs-on: ubuntu-latest
19+
name: Lint
20+
steps:
21+
- name: Check out source repository
22+
uses: actions/checkout@v4
23+
- name: Set up Python environment
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: "3.11"
27+
- name: flake8 Lint
28+
uses: py-actions/flake8@v2
29+
with:
30+
plugins: "flake8-no-print"

0 commit comments

Comments
 (0)