From ca2740ed08fc16ce7eebc5f62c52db6b47091f93 Mon Sep 17 00:00:00 2001 From: konard Date: Wed, 22 Jul 2026 21:18:12 +0000 Subject: [PATCH 1/2] Initial commit with task details Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: https://github.com/link-foundation/python-ai-driven-development-pipeline-template/issues/34 --- .gitkeep | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitkeep diff --git a/.gitkeep b/.gitkeep new file mode 100644 index 0000000..6049b3e --- /dev/null +++ b/.gitkeep @@ -0,0 +1 @@ +# .gitkeep file auto-generated at 2026-07-22T21:18:12.571Z for PR creation at branch issue-34-0c62870eba13 for issue https://github.com/link-foundation/python-ai-driven-development-pipeline-template/issues/34 \ No newline at end of file From 5974035daecba83457dfe0f6aef0746913d86044 Mon Sep 17 00:00:00 2001 From: konard Date: Wed, 22 Jul 2026 21:21:39 +0000 Subject: [PATCH 2/2] fix(ci): use Codecov v7 files input --- .github/workflows/release.yml | 2 +- .gitkeep | 1 - changelog.d/20260722_issue_34_codecov_v7_input.md | 3 +++ tests/test_workflows.py | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 .gitkeep create mode 100644 changelog.d/20260722_issue_34_codecov_v7_input.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9485fa4..e0afae6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -246,7 +246,7 @@ jobs: if: env.CODECOV_TOKEN != '' uses: codecov/codecov-action@v7 with: - file: ${{ steps.python_layout.outputs.root }}/coverage.xml + files: ${{ steps.python_layout.outputs.root }}/coverage.xml token: ${{ env.CODECOV_TOKEN }} disable_search: true fail_ci_if_error: true diff --git a/.gitkeep b/.gitkeep deleted file mode 100644 index 6049b3e..0000000 --- a/.gitkeep +++ /dev/null @@ -1 +0,0 @@ -# .gitkeep file auto-generated at 2026-07-22T21:18:12.571Z for PR creation at branch issue-34-0c62870eba13 for issue https://github.com/link-foundation/python-ai-driven-development-pipeline-template/issues/34 \ No newline at end of file diff --git a/changelog.d/20260722_issue_34_codecov_v7_input.md b/changelog.d/20260722_issue_34_codecov_v7_input.md new file mode 100644 index 0000000..70101a1 --- /dev/null +++ b/changelog.d/20260722_issue_34_codecov_v7_input.md @@ -0,0 +1,3 @@ +### Fixed + +- Use the Codecov v7 `files` input so the generated coverage report is uploaded. diff --git a/tests/test_workflows.py b/tests/test_workflows.py index 122edf2..82d4ae9 100644 --- a/tests/test_workflows.py +++ b/tests/test_workflows.py @@ -140,7 +140,8 @@ def test_release_workflow_gates_codecov_upload_on_token() -> None: assert "::notice::" in skip_step assert "if: env.CODECOV_TOKEN != ''" in upload_step assert "uses: codecov/codecov-action@v7" in upload_step - assert "file: ${{ steps.python_layout.outputs.root }}/coverage.xml" in upload_step + assert "files: ${{ steps.python_layout.outputs.root }}/coverage.xml" in upload_step + assert "\n file:" not in upload_step assert "token: ${{ env.CODECOV_TOKEN }}" in upload_step assert "disable_search: true" in upload_step assert "fail_ci_if_error: true" in upload_step