зеркало из https://github.com/microsoft/archai.git
Splits linter workflow step
This commit is contained in:
Родитель
ee16f1b1db
Коммит
ac93faa170
|
@ -31,12 +31,14 @@ jobs:
|
|||
python -m pip install flake8 pytest
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
python -m pip install .
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
- name: Runs tests
|
||||
run: |
|
||||
pytest tests
|
||||
- name: Catches Python syntax errors and undefined names
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
- name: Flake8 linter
|
||||
run: |
|
||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
|
|
Загрузка…
Ссылка в новой задаче