mirror of
https://github.com/nod-ai/AMD-SHARK-Studio.git
synced 2026-04-03 03:00:17 -04:00
Update test-models.yml
add yapf
This commit is contained in:
7
.github/workflows/test-models.yml
vendored
7
.github/workflows/test-models.yml
vendored
@@ -37,7 +37,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install flake8 pytest
|
||||
python -m pip install flake8 pytest yapf
|
||||
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
@@ -45,6 +45,8 @@ jobs:
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude lit.cfg.py
|
||||
# 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 --exclude lit.cfg.py
|
||||
yapf -i --style .style.yapf shark/*.py
|
||||
|
||||
- name: Validate Models
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
@@ -74,7 +76,7 @@ jobs:
|
||||
cd $GITHUB_WORKSPACE
|
||||
PYTHON=python3.10 ./setup_venv.sh
|
||||
source shark.venv/bin/activate
|
||||
python -m pip install flake8 pytest
|
||||
python -m pip install flake8 pytest yapf
|
||||
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
@@ -83,6 +85,7 @@ jobs:
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude lit.cfg.py,shark.venv
|
||||
# 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 --exclude lit.cfg.py,shark.venv
|
||||
yapf -i --style .style.yapf shark/*.py
|
||||
|
||||
- name: Validate Models
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user