Skip to content

Commit

Permalink
ci: try sonar-scanner
Browse files Browse the repository at this point in the history
Signed-off-by: BAStos525 <jungle.vas@yandex.ru>
  • Loading branch information
BAStos525 committed Nov 7, 2024
1 parent f969f44 commit bd1555f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pr-pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bd1555f

Please sign in to comment.