File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 15
15
steps :
16
16
- name : Checkout code
17
17
uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
18
20
19
21
- name : Set up Python
20
22
uses : actions/setup-python@v5
28
30
python3.12 -m pip install --upgrade pip
29
31
pip install -r test_requirements.txt
30
32
coverage run -m pytest
33
+ coverage xml -o coverage.xml --relative-files
31
34
deactivate
32
35
rm -rf env
33
-
34
- sonarcloud :
35
- name : SonarCloud
36
- runs-on : ubuntu-latest
37
- needs : python-test
38
- steps :
39
- - uses : actions/checkout@v4
40
- with :
41
- fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
42
36
- name : SonarCloud Scan
43
37
uses : SonarSource/sonarcloud-github-action@master
44
38
env :
Original file line number Diff line number Diff line change @@ -11,4 +11,5 @@ sonar.organization=chrisw-org
11
11
12
12
# Encoding of the source code. Default is default system encoding
13
13
# sonar.sourceEncoding=UTF-8
14
- sonar.python.version =3.12
14
+ sonar.python.version =3.12
15
+ sonar.python.coverage.reportPaths =coverage.xml
You can’t perform that action at this time.
0 commit comments