From 4fe15c23343d4422f880c7a29bc9b33543d69704 Mon Sep 17 00:00:00 2001 From: John Brittain Date: Thu, 10 Oct 2024 21:00:21 +0100 Subject: [PATCH] Add tmate debugging --- .github/workflows/ci.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0a315f4..99ada09 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,12 @@ name: Unit and integration tests on: workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" + required: false + default: false push: branches: - main @@ -27,6 +33,9 @@ jobs: - name: Run unit tests run: | uvx nox -s unit_tests + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} - name: Run system tests run: | uvx nox -s system_tests