Skip to content

Commit

Permalink
add step to debug with ssh the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vot4anto committed Feb 24, 2025
1 parent 90b4a1d commit d942290
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
- '**'
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
debug_enabled:
type: boolean
description: "Run the build with tmate debugging enabled"
required: false
default: false

jobs:
Tests_and_docs:
Expand Down Expand Up @@ -91,6 +97,10 @@ jobs:
-e BRANCH="$IRMT_BR" -e ONLY_CALC_ID="$ONLY_CALC_ID" -e ONLY_OUTPUT_TYPE="$ONLY_OUTPUT_TYPE" -e GEM_QGIS_TEST=y ${{ matrix.QGIS_DOCKER_VERSION }} \
bash -c "/tests_directory/startX.sh"
sleep 10
- name: Setup SSH session to debug docker container
uses: mxschmitt/action-tmate@v3
timeout-minutes: 45
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
- name: ℧ Run unit test
run: |
set -x
Expand Down

0 comments on commit d942290

Please sign in to comment.