File tree Expand file tree Collapse file tree 3 files changed +15
-36
lines changed Expand file tree Collapse file tree 3 files changed +15
-36
lines changed Original file line number Diff line number Diff line change 1
- name : sonarcloud
2
-
3
- on :
4
- push :
5
- branches :
6
- - main
7
- pull_request :
8
- branches :
9
- - main
10
-
1
+ name : Build
2
+ on : [pull_request]
11
3
jobs :
12
-
13
- sonarcloud :
14
- name : SonarCloud
4
+ sonarqube :
5
+ name : SonarQube
15
6
runs-on : ubuntu-latest
16
7
steps :
17
- - uses : actions/checkout@v3
8
+ - uses : actions/checkout@v4
18
9
with :
19
10
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
20
- - name : Set up Python
21
- uses : actions/setup-python@v3
22
- with :
23
- python-version : " 3.10"
24
- - name : Install dependencies
25
- run : |
26
- python -m pip install --upgrade pip
27
- python -m pip install .[dev]
28
- - name : Run unit tests with coverage
29
- run : pytest --cov --cov-report term --cov-report xml
30
- - name : Correct coverage paths
31
- run : sed -i "s+$PWD/++g" coverage.xml
32
- - name : SonarCloud Scan
33
- uses : SonarSource/sonarcloud-github-action@master
11
+ - name : SonarQube Scan
12
+ uses : SonarSource/sonarqube-scan-action@v4
34
13
env :
35
- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN }}
36
- SONAR_TOKEN : ${{secrets.SONAR_TOKEN }}
14
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
15
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ DOI] ( https://zenodo.org/badge/DOI/10.5281/zenodo.7717027.svg )] ( https://doi.org/10.5281/zenodo.7717027 )
4
4
[ ![ PyPI] ( https://img.shields.io/pypi/v/sarxarray.svg?colorB=blue )] ( https://pypi.python.org/project/sarxarray/ )
5
- [ ![ Quality Gate Status] ( https://sonarcloud.io/api/project_badges/measure?project=MotionbyLearning_sarxarray &metric=alert_status )] ( https://sonarcloud.io/summary/new_code?id=MotionbyLearning_sarxarray )
5
+ [ ![ Quality Gate Status] ( https://sonarcloud.io/api/project_badges/measure?project=TUDelftGeodesy_sarxarray &metric=alert_status )] ( https://sonarcloud.io/summary/new_code?id=TUDelftGeodesy_sarxarray )
6
6
[ ![ OpenSSF Best Practices] ( https://www.bestpractices.dev/projects/7980/badge )] ( https://www.bestpractices.dev/projects/7980 )
7
7
[ ![ Build] ( https://github.com/TUDelftGeodesy/sarxarray/actions/workflows/build.yml/badge.svg )] ( https://github.com/TUDelftGeodesy/sarxarray/actions/workflows/build.yml )
8
8
[ ![ License] ( https://img.shields.io/github/license/TUDelftGeodesy/sarxarray )] ( https://opensource.org/licenses/Apache-2.0 )
Original file line number Diff line number Diff line change 1
- sonar.organization =motionbylearning
2
- sonar.projectKey =MotionbyLearning_sarxarray
1
+ sonar.organization =tudelftgeodesy
2
+ sonar.projectKey =TUDelftGeodesy_sarxarray
3
3
sonar.host.url =https://sonarcloud.io
4
4
sonar.sources =sarxarray/
5
5
sonar.tests =tests/
6
- sonar.links.homepage =https://github.com/MotionbyLearning /sarxarray
7
- sonar.links.issue =https://github.com/MotionbyLearning /sarxarray/issues
8
- sonar.links.ci =https://github.com/MotionbyLearning /sarxarray/actions
6
+ sonar.links.homepage =https://github.com/TUDelftGeodesy /sarxarray
7
+ sonar.links.issue =https://github.com/TUDelftGeodesy /sarxarray/issues
8
+ sonar.links.ci =https://github.com/TUDelftGeodesy /sarxarray/actions
9
9
sonar.python.coverage.reportPaths =coverage.xml
10
10
sonar.python.xunit.reportPath =xunit-result.xml
11
11
sonar.python.pylint.reportPaths =pylint-report.txt
You can’t perform that action at this time.
0 commit comments