mirror of
https://github.com/borgbase/vorta
synced 2025-01-03 13:45:49 +00:00
Option to run tests with SSH debugging (#953)
This commit is contained in:
parent
96ed84b28d
commit
3b57ab43a4
1 changed files with 12 additions and 3 deletions
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
|
@ -1,6 +1,14 @@
|
||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
debug_enabled:
|
||||||
|
description: 'Run the build with tmate debugging enabled'
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
@ -48,8 +56,9 @@ jobs:
|
||||||
pip install -e .
|
pip install -e .
|
||||||
pip install -r requirements.d/dev.txt
|
pip install -r requirements.d/dev.txt
|
||||||
|
|
||||||
# - name: Setup tmate session
|
- name: Setup tmate session
|
||||||
# uses: mxschmitt/action-tmate@v3
|
uses: mxschmitt/action-tmate@v3
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
|
||||||
|
|
||||||
- name: Test with pytest (Linux)
|
- name: Test with pytest (Linux)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
|
Loading…
Reference in a new issue