Skip to content

Commit

Permalink
test(ci): integrate code coverage report to sonarqube (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
stu01509 committed Nov 5, 2023
1 parent 6747c26 commit f663c82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
pip install -r requirements.txt
run: pip install -r requirements.txt
- name: Pytest Unit Test
run: pytest
- name: Flake8 Lint Check
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
pip install -r requirements.txt
run: pip install -r requirements.txt
- name: Pytest Unit Test
run: pytest
- name: Flake8 Lint Check
Expand Down
2 changes: 2 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ sonar.organization=stu01509
sonar.projectName=TaiwanLotteryCrawler
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
sonar.python.version=3
sonar.sources=./TaiwanLottery
sonar.python.coverage.reportPaths=coverage.xml

0 comments on commit f663c82

Please sign in to comment.