Skip to content

Commit

Permalink
Update SONAR
Browse files Browse the repository at this point in the history
  • Loading branch information
itchibli committed Mar 19, 2024
1 parent b106992 commit 6aaeddc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 23 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/build.yml

This file was deleted.

10 changes: 8 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.10"
fetch-depth: 0
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -36,8 +37,13 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
pytest --cov=. --cov-report=xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

build-docker-image:
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 4 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ sonar.organization=alexandremaquet-hearc
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
#sonar.sourceEncoding=UTF-8

sonar.python.coverage.reportPaths=coverage.xml
sonar.coverage.exclusions=**/tests/**,**/controller/**,setup.py,test_wheel.py

0 comments on commit 6aaeddc

Please sign in to comment.