From 1ac453989f8eeb0644ee0587990b9bfd58fa322a 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..2721a7f09 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: @@ -18,6 +24,9 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v1 + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: