From 758307cd36f51558901e16ad80e12dd8e66de8ff Mon Sep 17 00:00:00 2001 From: Stephen Kent Date: Sat, 6 Jun 2026 13:43:04 -0700 Subject: [PATCH 1/2] Install codecov uploader from PyPI in CI workflow https://github.com/codecov/codecov-action/issues/1955 --- .github/workflows/ci.yaml | 1 + .../workflows/ci.yaml.jinja | 1 + tests/template/__snapshots__/test_workflows.ambr | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8b66478..3078701 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -58,6 +58,7 @@ jobs: if: ${{ matrix.python-version == '3.14' }} with: fail_ci_if_error: true + use_pypi: true docs: name: Documentation diff --git a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/ci.yaml.jinja b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/ci.yaml.jinja index 02cf584..6d3ba8b 100644 --- a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/ci.yaml.jinja +++ b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/ci.yaml.jinja @@ -51,6 +51,7 @@ jobs: if: {% raw %}${{ matrix.python-version == '{% endraw %}{{ py.latest() }}{% raw %}' }}{% endraw %} with: fail_ci_if_error: true + use_pypi: true {%- endif %} {% if enable_docs %} docs: diff --git a/tests/template/__snapshots__/test_workflows.ambr b/tests/template/__snapshots__/test_workflows.ambr index f49ad4d..0952c13 100644 --- a/tests/template/__snapshots__/test_workflows.ambr +++ b/tests/template/__snapshots__/test_workflows.ambr @@ -54,6 +54,7 @@ if: ${{ matrix.python-version == '3.14' }} with: fail_ci_if_error: true + use_pypi: true docs: name: Documentation @@ -234,6 +235,7 @@ if: ${{ matrix.python-version == '3.14' }} with: fail_ci_if_error: true + use_pypi: true gitleaks: @@ -372,6 +374,7 @@ if: ${{ matrix.python-version == '3.12' }} with: fail_ci_if_error: true + use_pypi: true docs: name: Documentation @@ -463,6 +466,7 @@ if: ${{ matrix.python-version == '3.12' }} with: fail_ci_if_error: true + use_pypi: true docs: name: Documentation @@ -558,6 +562,7 @@ if: ${{ matrix.python-version == '3.14' }} with: fail_ci_if_error: true + use_pypi: true docs: name: Documentation @@ -651,6 +656,7 @@ if: ${{ matrix.python-version == '3.14' }} with: fail_ci_if_error: true + use_pypi: true docs: name: Documentation @@ -746,6 +752,7 @@ if: ${{ matrix.python-version == '3.14' }} with: fail_ci_if_error: true + use_pypi: true docs: name: Documentation @@ -839,6 +846,7 @@ if: ${{ matrix.python-version == '3.14' }} with: fail_ci_if_error: true + use_pypi: true docs: name: Documentation From 73bcba86d191c3625257561aff3688de2f3035cc Mon Sep 17 00:00:00 2001 From: Stephen Kent Date: Sat, 6 Jun 2026 13:52:44 -0700 Subject: [PATCH 2/2] Pin codecov uploader version in CI --- .github/workflows/ci.yaml | 1 + .../workflows/ci.yaml.jinja | 1 + tests/template/__snapshots__/test_workflows.ambr | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3078701..210755d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -59,6 +59,7 @@ jobs: with: fail_ci_if_error: true use_pypi: true + version: 11.2.8 docs: name: Documentation diff --git a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/ci.yaml.jinja b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/ci.yaml.jinja index 6d3ba8b..3f75ca9 100644 --- a/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/ci.yaml.jinja +++ b/template/{% if project_visibility == 'public' %}.github{% endif %}/workflows/ci.yaml.jinja @@ -52,6 +52,7 @@ jobs: with: fail_ci_if_error: true use_pypi: true + version: 11.2.8 {%- endif %} {% if enable_docs %} docs: diff --git a/tests/template/__snapshots__/test_workflows.ambr b/tests/template/__snapshots__/test_workflows.ambr index 0952c13..0d888f4 100644 --- a/tests/template/__snapshots__/test_workflows.ambr +++ b/tests/template/__snapshots__/test_workflows.ambr @@ -55,6 +55,7 @@ with: fail_ci_if_error: true use_pypi: true + version: 11.2.8 docs: name: Documentation @@ -236,6 +237,7 @@ with: fail_ci_if_error: true use_pypi: true + version: 11.2.8 gitleaks: @@ -375,6 +377,7 @@ with: fail_ci_if_error: true use_pypi: true + version: 11.2.8 docs: name: Documentation @@ -467,6 +470,7 @@ with: fail_ci_if_error: true use_pypi: true + version: 11.2.8 docs: name: Documentation @@ -563,6 +567,7 @@ with: fail_ci_if_error: true use_pypi: true + version: 11.2.8 docs: name: Documentation @@ -657,6 +662,7 @@ with: fail_ci_if_error: true use_pypi: true + version: 11.2.8 docs: name: Documentation @@ -753,6 +759,7 @@ with: fail_ci_if_error: true use_pypi: true + version: 11.2.8 docs: name: Documentation @@ -847,6 +854,7 @@ with: fail_ci_if_error: true use_pypi: true + version: 11.2.8 docs: name: Documentation