fix(ci): only run lint on app/ and tests/
All checks were successful
CI w/ Poetry and Docker / ci (pull_request) Successful in 2m23s
All checks were successful
CI w/ Poetry and Docker / ci (pull_request) Successful in 2m23s
This commit is contained in:
parent
8799856019
commit
11a5900077
@ -27,22 +27,9 @@ jobs:
|
|||||||
format: sonarqube
|
format: sonarqube
|
||||||
no-fail: true
|
no-fail: true
|
||||||
|
|
||||||
# - name: Ensure pipx is in PATH
|
|
||||||
# run: |
|
|
||||||
# pipx ensurepath
|
|
||||||
# export PATH=$PATH:/root/.local/bin
|
|
||||||
|
|
||||||
# - name: Setup Poetry
|
|
||||||
# uses: abatilo/actions-poetry@v4
|
|
||||||
|
|
||||||
- name: Setup Poetry
|
- name: Setup Poetry
|
||||||
run: PIPX_BIN_DIR=/usr/local/bin pipx install poetry
|
run: PIPX_BIN_DIR=/usr/local/bin pipx install poetry
|
||||||
|
|
||||||
- name: Setup virtual environment
|
|
||||||
run: |
|
|
||||||
poetry config virtualenvs.create true --local
|
|
||||||
poetry config virtualenvs.in-project true --local
|
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
@ -60,7 +47,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt .
|
mkdir -p $HOME/.cache/pylint
|
||||||
|
poetry run pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt app/ tests/
|
||||||
cat lintreport.txt
|
cat lintreport.txt
|
||||||
|
|
||||||
- name: SonarQube Cloud Scan
|
- name: SonarQube Cloud Scan
|
||||||
|
Loading…
Reference in New Issue
Block a user