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: |
|
run: |
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
pip install pylint-exit
|
|
||||||
- name: Lint
|
- 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
|
- name: Unit Test
|
||||||
run: |
|
run: |
|
||||||
coverage run -m pytest -v --junitxml=testresults.xml
|
coverage run -m pytest -v --junitxml=testresults.xml
|
||||||
@ -45,7 +44,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||||
with:
|
with:
|
||||||
args: --sarif-file-output=snyk.sarif
|
args: --sarif-file-output=snyk.sarif --all-projects
|
||||||
- name: Upload result to GitHub Code Scanning
|
- name: Upload result to GitHub Code Scanning
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user