From 68ab41e81b936fba1a8c82b0acfb8faf8c5b954c Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 15 Mar 2026 23:09:09 +0000 Subject: [PATCH 1/3] Improve Coverage.py configuration Hide data files within a directory to avoid cluttering the repository root, and minimize reports. --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index e453a2c5..18b6937e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,6 +140,7 @@ ini_options.xfail_strict = true [tool.coverage] run.branch = true +run.data_file = ".coverage/cov" run.parallel = true run.source = [ "django_mysql", @@ -150,6 +151,8 @@ paths.source = [ ".tox/**/site-packages", ] report.show_missing = true +report.skip_covered = true +report.skip_empty = true [tool.mypy] enable_error_code = [ From 151062a88a649d1cb55f45bc1eae1175b5a82b16 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 15 Mar 2026 23:11:37 +0000 Subject: [PATCH 2/3] fix --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4ca17f74..5345cbec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -84,7 +84,7 @@ jobs: uses: actions/upload-artifact@v7 with: name: coverage-data-${{ matrix.python-version }}-${{ steps.format_db_id.outputs.db_id }} - path: '${{ github.workspace }}/.coverage.*' + path: '${{ github.workspace }}/.coverage/*' include-hidden-files: true if-no-files-found: error From f72b1c240047d9414fea447aa3cf15ea04a83d9a Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 16 Mar 2026 21:47:49 +0000 Subject: [PATCH 3/3] Fix GitHub Actions workflow --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5345cbec..bb91b48d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -108,7 +108,7 @@ jobs: - name: Download data uses: actions/download-artifact@v8 with: - path: ${{ github.workspace }} + path: .coverage pattern: coverage-data-* merge-multiple: true