Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to setup tmate debug session #1508

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) || (env.ACTIONS_RUNNER_DEBUG == 'true') }}

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