🔧 Update coverage config files (#12035)

This commit is contained in:
Sebastián Ramírez 2024-08-18 16:07:03 -05:00 committed by GitHub
parent 0da0814d8a
commit 4f1eb0cd9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 3 deletions

View File

@ -117,7 +117,7 @@ jobs:
- run: ls -la coverage - run: ls -la coverage
- run: coverage combine coverage - run: coverage combine coverage
- run: coverage report - run: coverage report
- run: coverage html --show-contexts --title "Coverage for ${{ github.sha }}" - run: coverage html --title "Coverage for ${{ github.sha }}"
- name: Store coverage HTML - name: Store coverage HTML
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

View File

@ -165,6 +165,7 @@ filterwarnings = [
[tool.coverage.run] [tool.coverage.run]
parallel = true parallel = true
data_file = "coverage/.coverage"
source = [ source = [
"docs_src", "docs_src",
"tests", "tests",
@ -177,6 +178,13 @@ omit = [
"docs_src/response_model/tutorial003_04_py310.py", "docs_src/response_model/tutorial003_04_py310.py",
] ]
[tool.coverage.report]
show_missing = true
sort = "-Cover"
[tool.coverage.html]
show_contexts = true
[tool.ruff.lint] [tool.ruff.lint]
select = [ select = [
"E", # pycodestyle errors "E", # pycodestyle errors

View File

@ -5,5 +5,5 @@ set -x
bash scripts/test.sh ${@} bash scripts/test.sh ${@}
coverage combine coverage combine
coverage report --show-missing coverage report
coverage html --show-contexts coverage html