chore: add tmate for manual ssh into runner

This commit is contained in:
Noortheen Raja 2022-03-20 10:55:12 +05:30 committed by Noorhteen Raja NJ
parent 96e726e390
commit d0f127718f

View file

@ -7,6 +7,12 @@ on:
pull_request: pull_request:
branches: branches:
- main - main
workflow_dispatch:
inputs:
tmate_debug_enabled:
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
jobs: jobs:
ci: ci:
@ -30,6 +36,10 @@ jobs:
python -m pip --version python -m pip --version
python -m pip install wheel python -m pip install wheel
python -m pip install -r requirements/tests.txt python -m pip install -r requirements/tests.txt
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tmate_debug_enabled }}
timeout-minutes: 15
- name: Run QA Checks - name: Run QA Checks
if: ${{ startsWith(matrix.os, 'ubuntu') && startsWith(matrix.python-version, '3.10') }} if: ${{ startsWith(matrix.os, 'ubuntu') && startsWith(matrix.python-version, '3.10') }}
run: python -m xonsh run-tests.xsh qa run: python -m xonsh run-tests.xsh qa