Skip to content

Commit

Permalink
Add ability to setup tmate debug session
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yarikoptic committed Sep 27, 2024
1 parent fdd65d0 commit 4e63286
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
pull_request:
schedule:
- cron: '0 6 * * *'
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

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}
Expand Down Expand Up @@ -93,6 +100,10 @@ jobs:
if: github.event_name == 'schedule'
run: echo PYTEST_ADDOPTS=--scheduled >> "$GITHUB_ENV"

- name: "(debug mode) Setup tmate session"
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}

- name: Run all tests
if: matrix.mode != 'dandi-api'
run: |
Expand Down

0 comments on commit 4e63286

Please sign in to comment.