Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
as6325400 committed Oct 6, 2024
1 parent 90fc145 commit 1cdd169
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage
# 執行測試
- name: Run tests
- name: Run tests with coverage
run: |
python -m unittest discover
coverage run -m unittest discover
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml # 指定生成的覆蓋率報告文件

0 comments on commit 1cdd169

Please sign in to comment.