From 7c44512f33a4f0523b88e083dad51ec4472a32ff Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sat, 27 Apr 2024 18:59:18 +0100 Subject: [PATCH] fix Poetry workflows --- .github/workflows/ci-python-poetry-with-docker.yml | 6 +++--- .github/workflows/ci-python-poetry.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-python-poetry-with-docker.yml b/.github/workflows/ci-python-poetry-with-docker.yml index cc61cb0..e234c0d 100644 --- a/.github/workflows/ci-python-poetry-with-docker.yml +++ b/.github/workflows/ci-python-poetry-with-docker.yml @@ -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 diff --git a/.github/workflows/ci-python-poetry.yml b/.github/workflows/ci-python-poetry.yml index 1eff752..a2e7200 100644 --- a/.github/workflows/ci-python-poetry.yml +++ b/.github/workflows/ci-python-poetry.yml @@ -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