🔧 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: coverage combine coverage
- 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
uses: actions/upload-artifact@v4
with:

View File

@ -165,6 +165,7 @@ filterwarnings = [
[tool.coverage.run]
parallel = true
data_file = "coverage/.coverage"
source = [
"docs_src",
"tests",
@ -177,6 +178,13 @@ omit = [
"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]
select = [
"E", # pycodestyle errors

View File

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