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

index 8fbbc324b44f5f5d7d36021fd6fcc9ea1d54032f..86e91cb6cafd6b474d55c4cca90d473bcbf430eb 100644 (file)
@@ -100,7 +100,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
index a27309b0af576ebb4a91c5b18d78d1751c39c633..e3b70b5abdce8ed924eb63f75027e4282feb6b46 100644 (file)
@@ -73,14 +73,18 @@ optional-dependencies = {}
 
 [tool.coverage.run]
 parallel = true
+data_file = "coverage/.coverage"
 source = [
     "docs_src",
     "tests",
     "sqlmodel"
 ]
 context = '${CONTEXT}'
+dynamic_context = "test_function"
 
 [tool.coverage.report]
+show_missing = true
+sort = "-Cover"
 exclude_lines = [
     "pragma: no cover",
     "@overload",
@@ -88,6 +92,9 @@ exclude_lines = [
     "if TYPE_CHECKING:",
 ]
 
+[tool.coverage.html]
+show_contexts = true
+
 [tool.mypy]
 strict = true
 
index 9b758bdbdfc669c64a0bd2a34e3ba85f23750ac6..ff4b114b186342c2380e790aa54ac24eb506b217 100755 (executable)
@@ -5,5 +5,5 @@ set -x
 
 coverage run -m pytest tests
 coverage combine
-coverage report --show-missing
+coverage report
 coverage html