Skip to content

Commit a31c405

Browse files
committed
Added coverage and sonarcloud to dev test
1 parent 104294f commit a31c405

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/python-test-dev.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,20 @@ jobs:
2323
run: |
2424
cd howlongtobeatpy
2525
python -m pip install --upgrade pip
26+
pip install nose codecov
2627
pip install .
2728
- name: Test
2829
run: |
29-
nosetests howlongtobeatpy
30+
nosetests howlongtobeatpy --with-coverage
31+
coverage xml
32+
- name: Upload Coverage codecov
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
36+
run: |
37+
codecov
38+
- name: SonarCloud Scan
39+
uses: sonarsource/sonarcloud-github-action@master
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)