From 18d4fb16462f8c891e59c494524ee958f7d7ac52 Mon Sep 17 00:00:00 2001 From: thc1006 <84045975+thc1006@users.noreply.github.com> Date: Sat, 15 Aug 2026 01:44:34 +0800 Subject: [PATCH] CI: measure coverage on develop, not only on pull requests The tests workflow is the only one that uploads to Codecov and it runs on pull_request alone, so no commit on develop ever gets a report. Codecov then compares each pull request against the nearest older report it holds and prints how far behind that has fallen; the banner read 53 commits one day and 61 the next, and it grows with every merge. .codecov.yml already names master and develop under branches for both the project and the patch status, so the configuration expects these to be measured. docs.yml pairs pull_request with push the same way. Nothing in the jobs reads pull_request context, so the same matrix runs unchanged on a push. Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com> --- .github/workflows/test_pytest.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/test_pytest.yaml b/.github/workflows/test_pytest.yaml index e8e2bdfef..e5b944317 100644 --- a/.github/workflows/test_pytest.yaml +++ b/.github/workflows/test_pytest.yaml @@ -8,6 +8,17 @@ on: - ".github/**" - "pyproject.toml" - "requirements*" + # Codecov compares a pull request against the report it holds for the base + # commit. Without this, nothing ever uploads one for a commit on develop, so + # every pull request is measured against whichever old report is nearest and + # says how far behind it has fallen. + push: + branches: [master, develop] + paths: + - "**.py" + - ".github/**" + - "pyproject.toml" + - "requirements*" defaults: run: