]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🔧 Update coverage config files (#12035)
authorSebastián Ramírez <tiangolo@gmail.com>
Sun, 18 Aug 2024 21:07:03 +0000 (16:07 -0500)
committerGitHub <noreply@github.com>
Sun, 18 Aug 2024 21:07:03 +0000 (16:07 -0500)
.github/workflows/test.yml
pyproject.toml
scripts/test-cov-html.sh

index a33b6a68a25de5b3efa386045b01e51679288395..0458f83ffe2081928ed5ec299d77d1454f09a3e9 100644 (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:
index 8db2d2b2d34aa2c59a41fd7ec402860333889881..bb87be470e375c787c218cd177b3794cddab04a5 100644 (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
index 85aef9601896af5bd44188f3ef819f992b4a3cd5..517ac6422e2fe836060c86a5eae360d6afed3339 100755 (executable)
@@ -5,5 +5,5 @@ set -x
 
 bash scripts/test.sh ${@}
 coverage combine
-coverage report --show-missing
-coverage html --show-contexts
+coverage report
+coverage html