fix Poetry workflows
This commit is contained in:
parent
fa84ef4d1c
commit
7c44512f33
@ -30,11 +30,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: poetry install
|
run: poetry install
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: pylint --recursive=yes --output-format=parseable --output=lintreport.txt . || pylint-exit $?
|
run: poetry run pylint --recursive=yes --output-format=parseable --output=lintreport.txt . || pylint-exit $?
|
||||||
- name: Unit Test
|
- name: Unit Test
|
||||||
run: |
|
run: |
|
||||||
coverage run -m pytest -v --junitxml=testresults.xml
|
poetry run coverage run -m pytest -v --junitxml=testresults.xml
|
||||||
coverage xml
|
poetry run coverage xml
|
||||||
sed -i 's@${{ github.workspace }}@/github/workspace@g' coverage.xml
|
sed -i 's@${{ github.workspace }}@/github/workspace@g' coverage.xml
|
||||||
- name: SonarCloud Scan
|
- name: SonarCloud Scan
|
||||||
uses: SonarSource/sonarcloud-github-action@master
|
uses: SonarSource/sonarcloud-github-action@master
|
||||||
|
6
.github/workflows/ci-python-poetry.yml
vendored
6
.github/workflows/ci-python-poetry.yml
vendored
@ -24,11 +24,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: poetry install
|
run: poetry install
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: pylint --recursive=yes --output-format=parseable --output=lintreport.txt . || pylint-exit $?
|
run: poetry run pylint --recursive=yes --output-format=parseable --output=lintreport.txt . || pylint-exit $?
|
||||||
- name: Unit Test
|
- name: Unit Test
|
||||||
run: |
|
run: |
|
||||||
coverage run -m pytest -v --junitxml=testresults.xml
|
poetry run coverage run -m pytest -v --junitxml=testresults.xml
|
||||||
coverage xml
|
poetry run coverage xml
|
||||||
sed -i 's@${{ github.workspace }}@/github/workspace@g' coverage.xml
|
sed -i 's@${{ github.workspace }}@/github/workspace@g' coverage.xml
|
||||||
- name: SonarCloud Scan
|
- name: SonarCloud Scan
|
||||||
uses: SonarSource/sonarcloud-github-action@master
|
uses: SonarSource/sonarcloud-github-action@master
|
||||||
|
Loading…
Reference in New Issue
Block a user