Skip to content

Commit

Permalink
fix pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrandazzo committed Aug 15, 2023
1 parent 8b424bb commit 24106de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
- name: Install tox and dependencies
run: sudo apt-get install tox
- name: Run tox
run: tox -e py
run: |
cd src/python_bindings
tox -e py
- name: Download and install the SonarScanner
env:
SONAR_SCANNER_VERSION: 4.6.2.2472
Expand All @@ -44,7 +46,7 @@ jobs:
echo "$HOME/.sonar/sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux/bin" >> $GITHUB_PATH
- name: SonarQube Scan
run: |
sonar-scanner --define sonar.cfamily.compile-commands=build/compile_commands.json --define sonar.cfamily.gcov.reportsPath=build/Testing/CoverageInfo/ --define sonar.python.coverage.reportPaths=coverage.xml --define sonar.verbose=true
sonar-scanner --define sonar.cfamily.compile-commands=build/compile_commands.json --define sonar.cfamily.gcov.reportsPath=build/Testing/CoverageInfo/ --define sonar.python.coverage.reportPaths=src/python_bindings/coverage.xml --define sonar.verbose=true
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ sonar.exclusions=**/build/**,**/tests/**,docs/**
sonar.cfamily.compile-commands=build/compile_commands.json
sonar.cfamily.gcov.reportsPath=build/Testing/CoverageInfo/
sonar.python.version=3.10
sonar.python.coverage.reportPaths=coverage.xml
sonar.python.coverage.reportPaths=src/python_bindings/coverage.xml
5 changes: 2 additions & 3 deletions tox.ini → src/python_bindings/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ deps =
numpy

commands =
python3 -m pip install src/python_bindings/
coverage run --source=src/python_bindings/libscientific/ -m pytest
coverage run -m pytest
coverage xml

[coverage:run]
relative_files = True
source = src/python_bindings/libscientific/
source = libscientific/
branch = True

0 comments on commit 24106de

Please sign in to comment.