fix Poetry workflows

This commit is contained in:
Luke Tainton 2024-04-27 18:59:18 +01:00
parent fa84ef4d1c
commit 7c44512f33
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -30,11 +30,11 @@ jobs:
- name: Install dependencies
run: poetry install
- 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
run: |
coverage run -m pytest -v --junitxml=testresults.xml
coverage xml
poetry run coverage run -m pytest -v --junitxml=testresults.xml
poetry run coverage xml
sed -i 's@${{ github.workspace }}@/github/workspace@g' coverage.xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master

View File

@ -24,11 +24,11 @@ jobs:
- name: Install dependencies
run: poetry install
- 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
run: |
coverage run -m pytest -v --junitxml=testresults.xml
coverage xml
poetry run coverage run -m pytest -v --junitxml=testresults.xml
poetry run coverage xml
sed -i 's@${{ github.workspace }}@/github/workspace@g' coverage.xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master