From 66dcc9ea8094351b7ea997cbe475ef1de6d9fb8c Mon Sep 17 00:00:00 2001 From: Helge Hecht Date: Wed, 19 Jun 2024 13:35:47 +0200 Subject: [PATCH] updated build and sonarcloud yaml files --- .github/workflows/build.yml | 2 +- .github/workflows/sonarcloud.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index afda464..5272445 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: - name: Upgrade pip and install dependencies run: | python -m pip install --upgrade pip poetry - poetry install --no-root + poetry install - name: Run unit tests run: poetry run pytest - name: Verify that we can build the package diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index c6f6402..89b9679 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -31,7 +31,7 @@ jobs: python -m pip install --upgrade pip poetry poetry install - name: Run unit tests with coverage - run: python -m pytest --cov --cov-report term --cov-report xml --junitxml=xunit-result.xml tests/ + run: poetry run pytest --cov --cov-report term --cov-report xml --junitxml=xunit-result.xml tests/ - name: Correct coverage paths run: sed -i "s+$PWD/++g" coverage.xml - name: SonarCloud Scan