From 621117ea8b6a9079fbde96bfdfa28a09a83e50cf Mon Sep 17 00:00:00 2001 From: Nicolas Bock Date: Tue, 14 Mar 2023 15:50:44 -0600 Subject: [PATCH] Add remote debug to CI runners Signed-off-by: Nicolas Bock --- .github/workflows/tests.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7e0decc58..1ccad4019 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,8 +1,14 @@ name: Test on: - - push - - pull_request - - workflow_dispatch + push: + pull_request: + 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 jobs: test: @@ -40,3 +46,6 @@ jobs: - name: Run functional run: tox -e functional if: matrix.python-version == '3.10' + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}