This repository was archived by the owner on Jul 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +44
-16
lines changed Expand file tree Collapse file tree 2 files changed +44
-16
lines changed Original file line number Diff line number Diff line change 29
29
run : |
30
30
pip install pytest
31
31
python -m pytest -v --cov=./TSIClient --cov-report xml --cov-report term
32
- - name : fix code coverage paths
33
- working-directory : .
34
- run : |
35
- sed -i 's/\/home\/runner\/work\/TSIClient\/TSIClient\//\/github\/workspace\//g' coverage.xml
36
- - name : SonarCloud Scan
37
- uses : sonarsource/sonarcloud-github-action@master
38
- with :
39
- args : >
40
- -Dsonar.organization=raalabs
41
- -Dsonar.projectKey=RaaLabs_TSIClient
42
- -Dsonar.python.coverage.reportPaths=coverage.xml
43
- -Dsonar.sources=TSIClient
44
- -Dsonar.tests=tests
45
- env :
46
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : SonarCloud
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' **'
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ python-version : [3.6]
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Setting up Python ${{ matrix.python-version }}
18
+ uses : actions/setup-python@v2
19
+ with :
20
+ python-version : ${{ matrix.python-version }}
21
+ - name : Installing dependencies
22
+ run : |
23
+ python -m pip install --upgrade pip
24
+ pip install -r requirements.txt
25
+ - name : Running unit tests
26
+ run : |
27
+ pip install pytest
28
+ python -m pytest -v --cov=./TSIClient --cov-report xml --cov-report term
29
+ - name : fix code coverage paths
30
+ working-directory : .
31
+ run : |
32
+ sed -i 's/\/home\/runner\/work\/TSIClient\/TSIClient\//\/github\/workspace\//g' coverage.xml
33
+ - name : SonarCloud Scan
34
+ uses : sonarsource/sonarcloud-github-action@master
35
+ with :
36
+ args : >
37
+ -Dsonar.organization=raalabs
38
+ -Dsonar.projectKey=RaaLabs_TSIClient
39
+ -Dsonar.python.coverage.reportPaths=coverage.xml
40
+ -Dsonar.sources=TSIClient
41
+ -Dsonar.tests=tests
42
+ env :
43
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments