Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 621117e

Browse files
committedMar 14, 2023
Add remote debug to CI runners
Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
1 parent c75b217 commit 621117e

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed
 

‎.github/workflows/tests.yaml

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: Test
22
on:
3-
- push
4-
- pull_request
5-
- workflow_dispatch
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
inputs:
7+
debug_enabled:
8+
type: boolean
9+
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
10+
required: false
11+
default: false
612

713
jobs:
814
test:
@@ -40,3 +46,6 @@ jobs:
4046
- name: Run functional
4147
run: tox -e functional
4248
if: matrix.python-version == '3.10'
49+
- name: Setup tmate session
50+
uses: mxschmitt/action-tmate@v3
51+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}

0 commit comments

Comments
 (0)
Please sign in to comment.