From bd1555fc29374cf6f115019b71b4f09b51c29c23 Mon Sep 17 00:00:00 2001 From: BAStos525 Date: Thu, 7 Nov 2024 19:13:12 +0300 Subject: [PATCH] ci: try sonar-scanner Signed-off-by: BAStos525 --- .github/workflows/pr-pytests.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-pytests.yml b/.github/workflows/pr-pytests.yml index b4e416b0..ad6609fc 100644 --- a/.github/workflows/pr-pytests.yml +++ b/.github/workflows/pr-pytests.yml @@ -43,13 +43,16 @@ jobs: source .venv/bin/activate && pip install pytest bandit pylint faker allure-pytest && pip install --break-system-packages target/wheels/iroha-*.whl && - bandit --format json --output bandit-report.json --recursive hyperledger-iroha:iroha-python && - python -m pytest --cov=hyperledger-iroha:iroha-python --cov-report xml:coverage-reports/coverage-iroha-python.xml tests/ && - pylint my_library -r n > pylint-report.txt" + python -m pytest tests/" # - name: Sonarqube # run: | # pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pysonar-scanner # pysonar-scanner -Dsonar.login=${{ secrets.SONAR_TOKEN }} + - name: Sonar tests + run: | + bandit --format json --output bandit-report.json --recursive hyperledger-iroha:iroha-python && + python -m pytest --cov=hyperledger-iroha:iroha-python --cov-report xml:coverage-reports/coverage-iroha-python.xml tests/ && + pylint my_library -r n > pylint-report.txt - name: SonarQube uses: sonarsource/sonarqube-scan-action@master env: