Skip to content

Commit 4e63286

Browse files
committed
Add ability to setup tmate debug session
Current desire/need is to troubleshoot #1499 but moreover -- Windows. Not yet even sure if would work for windows but still -- would be good to have generally May be later we should parametrize more, not for every debug run
1 parent fdd65d0 commit 4e63286

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/test.yml

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
pull_request:
88
schedule:
99
- cron: '0 6 * * *'
10+
workflow_dispatch:
11+
inputs:
12+
debug_enabled:
13+
type: boolean
14+
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
15+
required: false
16+
default: false
1017

1118
concurrency:
1219
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}
@@ -93,6 +100,10 @@ jobs:
93100
if: github.event_name == 'schedule'
94101
run: echo PYTEST_ADDOPTS=--scheduled >> "$GITHUB_ENV"
95102

103+
- name: "(debug mode) Setup tmate session"
104+
uses: mxschmitt/action-tmate@v3
105+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
106+
96107
- name: Run all tests
97108
if: matrix.mode != 'dandi-api'
98109
run: |

0 commit comments

Comments
 (0)