From 76f36fa3f39ebea84f4432b8d6e1ae94ee5f0698 Mon Sep 17 00:00:00 2001 From: Michael Wiegand Date: Thu, 26 Nov 2026 12:25:32 +0100 Subject: [PATCH] CI: Aggregate Python checks Commit generated using the `pi` coding agent harness (model: openai-codex/gpt-6.1-terra). --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7491813e..2bf622b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,22 @@ on: - main pull_request: +permissions: + contents: read + jobs: + all-python-ci-jobs-passed: + name: All Python CI jobs passed + needs: [linting, test, mypy, codecov, build-docs, check-version] + if: ${{ always() }} + permissions: {} + runs-on: ubuntu-latest + steps: + - name: Require all CI jobs to succeed + env: + NEEDS: ${{ toJSON(needs) }} + run: jq -e 'all(.[]; .result == "success")' <<<"$NEEDS" + linting: name: Linting runs-on: "ubuntu-latest" @@ -20,6 +35,8 @@ jobs: - "3.15" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Check and lint python packages uses: greenbone/actions/lint-python@v3 with: @@ -42,6 +59,8 @@ jobs: - "3.15" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Set up Python ${{ matrix.python-version }} uses: greenbone/actions/uv@v3 with: @@ -63,6 +82,8 @@ jobs: - "3.15" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Set up Python ${{ matrix.python-version }} uses: greenbone/actions/uv@v3 with: @@ -77,6 +98,8 @@ jobs: runs-on: "ubuntu-latest" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Calculate and upload coverage to codecov.io uses: greenbone/actions/coverage-python@v3 with: @@ -88,6 +111,8 @@ jobs: runs-on: "ubuntu-latest" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Set up Python ${{ matrix.python-version }} uses: greenbone/actions/uv@v3 - name: Build docs