Skip to content

Commit

Permalink
ci: modify the code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
stu01509 committed Nov 5, 2023
1 parent 6747c26 commit 636aea6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
run: |
pip install -r requirements.txt
- name: Pytest Unit Test
run: pytest
run: |
pytest
ls -al
pwd
- name: Flake8 Lint Check
run: flake8
- name: SonarCloud Scan
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[pytest]
pythonpath = TaiwanLottery
addopts =
--cov=TaiwanLottery tests/
--cov-report=term
Expand Down
1 change: 1 addition & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ sonar.organization=stu01509
sonar.projectName=TaiwanLotteryCrawler
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
sonar.python.version=3
sonar.python.coverage.reportPaths=coverage.xml

0 comments on commit 636aea6

Please sign in to comment.