Update ci-python.yml
This commit is contained in:
parent
690755a26c
commit
c33cffb869
5
.github/workflows/ci-python.yml
vendored
5
.github/workflows/ci-python.yml
vendored
@ -26,9 +26,8 @@ jobs:
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-dev.txt
|
||||
pip install pylint-exit
|
||||
- name: Lint
|
||||
run: pylint --recursive=yes --output-format=parseable --output=lintreport.txt . || pylint-exit $?
|
||||
run: pylint --fail-under=8 --recursive=yes --output-format=parseable --output=lintreport.txt .
|
||||
- name: Unit Test
|
||||
run: |
|
||||
coverage run -m pytest -v --junitxml=testresults.xml
|
||||
@ -45,7 +44,7 @@ jobs:
|
||||
env:
|
||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||
with:
|
||||
args: --sarif-file-output=snyk.sarif
|
||||
args: --sarif-file-output=snyk.sarif --all-projects
|
||||
- name: Upload result to GitHub Code Scanning
|
||||
uses: github/codeql-action/upload-sarif@v3
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user