From 3b57ab43a46f9e071a9c08e85f5c9fa90d3d0eaf Mon Sep 17 00:00:00 2001 From: Manu <3916435+m3nu@users.noreply.github.com> Date: Sun, 18 Apr 2021 21:33:48 +0800 Subject: [PATCH] Option to run tests with SSH debugging (#953) --- .github/workflows/test.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7f0221e..38141042 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,14 @@ name: Test -on: [push, pull_request] +on: + push: + pull_request: + workflow_dispatch: + inputs: + debug_enabled: + description: 'Run the build with tmate debugging enabled' + required: false + default: false jobs: test: @@ -48,8 +56,9 @@ jobs: pip install -e . pip install -r requirements.d/dev.txt - # - name: Setup tmate session - # uses: mxschmitt/action-tmate@v3 + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} - name: Test with pytest (Linux) if: runner.os == 'Linux'