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: 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:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue