From a61971df3fb93fc44240fb5950c7be0675f6b288 Mon Sep 17 00:00:00 2001 From: Carlo van Driesten Date: Thu, 12 Nov 2026 09:21:37 +0100 Subject: [PATCH] ci: probe how a skipped matrix job reports its checks --- .github/workflows/probe-matrix.yml | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/probe-matrix.yml diff --git a/.github/workflows/probe-matrix.yml b/.github/workflows/probe-matrix.yml new file mode 100644 index 0000000000..798e4f32ce --- /dev/null +++ b/.github/workflows/probe-matrix.yml @@ -0,0 +1,45 @@ +name: Probe matrix skip + +on: + pull_request: + branches: [ 'integration/3.0' ] + +jobs: + gate: + name: probe gate + runs-on: ubuntu-latest + outputs: + code: ${{ steps.decide.outputs.code }} + steps: + - name: Report no code + id: decide + run: echo "code=false" >> "$GITHUB_OUTPUT" + + job-level-skip: + name: probe joblevel ${{ matrix.py }} - ${{ matrix.os }} + needs: gate + if: always() && !(needs.gate.result == 'success' && needs.gate.outputs.code == 'false') + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + py: ["3.11", "3.12"] + steps: + - name: Would have tested + run: echo "ran ${{ matrix.py }} on ${{ matrix.os }}" + + step-level-skip: + name: probe steplevel ${{ matrix.py }} - ${{ matrix.os }} + needs: gate + if: always() + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + py: ["3.11", "3.12"] + steps: + - name: Would have tested + if: always() && !(needs.gate.result == 'success' && needs.gate.outputs.code == 'false') + run: echo "ran ${{ matrix.py }} on ${{ matrix.os }}"