From cc941875cf16fb524857c04c23bd61e0496c07cd Mon Sep 17 00:00:00 2001 From: Paillat-dev Date: Wed, 19 Nov 2025 17:00:10 +0100 Subject: [PATCH 1/2] :construction_worker: Add conditional step for test results in GitHub Actions Signed-off-by: Paillat-dev --- .github/workflows/lib-checks.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/lib-checks.yml b/.github/workflows/lib-checks.yml index 034a042c50..602e18f7b0 100644 --- a/.github/workflows/lib-checks.yml +++ b/.github/workflows/lib-checks.yml @@ -115,3 +115,14 @@ jobs: - name: "Run tests" run: uv run tox + tests-pass: # ref: https://github.com/orgs/community/discussions/4324#discussioncomment-3477871 + runs-on: ubuntu-20.04 + needs: [tests] + if: ${{ github.event_name != 'schedule' }} + steps: + - name: Tests succeeded + if: ${{ !(contains(needs.*.result, 'failure')) }} + run: exit 0 + - name: Tests failed + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 From 445f2a22b5582221ac95c9d7d079dfc8d3924bcc Mon Sep 17 00:00:00 2001 From: Paillat-dev Date: Wed, 19 Nov 2025 17:08:02 +0100 Subject: [PATCH 2/2] ci: update test runner to use ubuntu-latest Signed-off-by: Paillat-dev --- .github/workflows/lib-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lib-checks.yml b/.github/workflows/lib-checks.yml index 602e18f7b0..503a9fb78c 100644 --- a/.github/workflows/lib-checks.yml +++ b/.github/workflows/lib-checks.yml @@ -116,7 +116,7 @@ jobs: - name: "Run tests" run: uv run tox tests-pass: # ref: https://github.com/orgs/community/discussions/4324#discussioncomment-3477871 - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest needs: [tests] if: ${{ github.event_name != 'schedule' }} steps: