Skip to content

Commit b689840

Browse files
committed
update workflow
1 parent 169ffd7 commit b689840

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/python-app.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44
name: Python application
55

66
on:
7-
push:
8-
branches: [ "main" ]
7+
push:
8+
branches: [ "main" ]
99

1010
permissions:
11-
contents: read
11+
contents: read
1212

1313
jobs:
14-
build:
15-
runs-on: ubuntu-latest
16-
17-
steps:
18-
- uses: actions/checkout@v4
19-
- name: Set up Python 3.10
20-
uses: actions/setup-python@v4
21-
with:
22-
python-version: "3.10"
23-
- name: Lint with flake8
24-
run: |
25-
# stop the build if there are Python syntax errors or undefined names
26-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
27-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
28-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
14+
build:
15+
runs-on: ubuntu-latest
2916

17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python 3.10
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.10"
23+
24+
- name: Lint with flake8
25+
run: |
26+
# stop the build if there are Python syntax errors or undefined names
27+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
28+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
29+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

0 commit comments

Comments
 (0)