File tree Expand file tree Collapse file tree 1 file changed +24
-20
lines changed Expand file tree Collapse file tree 1 file changed +24
-20
lines changed Original file line number Diff line number Diff line change 1515 - ' **'
1616
1717jobs :
18+
19+ Lint :
20+ runs-on : ubuntu-latest
21+ strategy :
22+ fail-fast : false
23+ defaults :
24+ run :
25+ shell : bash -l {0}
26+ steps :
27+
28+
29+ - name : Checking Out Repository
30+ uses : actions/checkout@v2
31+ # Install Python & Packages
32+ - uses : actions/setup-python@v4
33+ with :
34+ python-version : " 3.10"
35+ - run : which python
36+ - name : Lint with pre-commit
37+ run : |
38+ pip install pre-commit
39+ pre-commit install --install-hooks
40+ pre-commit run --all-files
41+
1842 linux :
1943
2044 runs-on : ubuntu-latest
4468 - name : Upload coverage reports to Codecov with GitHub Action
4569 uses : codecov/codecov-action@v3
4670
47- pep8 :
48- runs-on : ubuntu-latest
49- if : " !contains(github.event.head_commit.message, 'no pep8')"
50- steps :
51- - uses : actions/checkout@v4
52- - name : Set up Python
53- uses : actions/setup-python@v5
54- with :
55- python-version : " 3.x"
56- - name : Install dependencies
57- run : |
58- python -m pip install --upgrade pip setuptools
59- pip install flake8
60- - name : Lint with flake8
61- run : |
62- # stop the build if there are Python syntax errors or undefined names
63- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
64- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
65- flake8 examples/ ot/ test/ --count --max-line-length=127 --statistics
66-
6771 linux-minimal-deps :
6872
6973 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments