From 56b46efdf2891ddefe596214e0d37a48ec91dd29 Mon Sep 17 00:00:00 2001 From: Renaud Cepre <32103211+renaudcepre@users.noreply.github.com> Date: Fri, 20 Mar 2026 07:26:16 +0100 Subject: [PATCH 1/2] ci: add automated release workflow using Release Please --- .github/workflows/release-please.yml | 20 ++++++++++++++++++++ .release-please-manifest.json | 3 +++ release-please-config.json | 11 +++++++++++ 3 files changed, 34 insertions(+) create mode 100644 .github/workflows/release-please.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..9611caf --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,20 @@ +name: Release Please + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + config-file: release-please-config.json + manifest-file: .release-please-manifest.json diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..466df71 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.1.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..d9a008b --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,11 @@ +{ + "release-type": "python", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "packages": { + ".": { + "package-name": "protest", + "changelog-path": "CHANGELOG.md" + } + } +} From f822d5e272477a3221f149a505738ff1761fdcbf Mon Sep 17 00:00:00 2001 From: Renaud Cepre <32103211+renaudcepre@users.noreply.github.com> Date: Fri, 20 Mar 2026 07:31:11 +0100 Subject: [PATCH 2/2] ci: add test-summary step to report test matrix results --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55fcda3..e2be328 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,3 +105,15 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml fail_ci_if_error: false + + test-summary: + needs: test + runs-on: ubuntu-latest + if: always() + steps: + - name: All tests passed + run: | + if [ "${{ needs.test.result }}" != "success" ]; then + echo "One or more test matrix jobs failed." + exit 1 + fi