mirror of https://github.com/tiangolo/fastapi.git
🔧 Update coverage config files (#12035)
This commit is contained in:
parent
0da0814d8a
commit
4f1eb0cd9e
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ set -x
|
|||
|
||||
bash scripts/test.sh ${@}
|
||||
coverage combine
|
||||
coverage report --show-missing
|
||||
coverage html --show-contexts
|
||||
coverage report
|
||||
coverage html
|
||||
|
|
|
|||
Loading…
Reference in New Issue