Skip to content

Commit

Permalink
add ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Kamina committed Aug 29, 2024
1 parent 9af6f03 commit 6f2d7d0
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,18 @@ on:
gvsbuild-tag:
description: "Use an alternative gvsbuild release for the windows build. Defaults to latest."
default: "latest"
secrets:
NGROK_AUTH_TOKEN:
description: 'Token for SSH debug'
required: false
SSH_PASS:
description: 'Pass for SSH debug'
required: false
jobs:
test-linux:
# secrets:
# NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
# SSH_PASS: ${{ secrets.SSH_PASS }}
strategy:
matrix:
python-version: ["3.9", "3.10"]
Expand Down Expand Up @@ -76,14 +86,24 @@ jobs:
with:
name: crashes
path: /cores
- name: Start SSH session
uses: Lord-Kamina/debug-via-ssh@main
if: ${{ failure() }}
id: ssh_debug
with:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
SSH_PASS: ${{ secrets.SSH_PASS }}
NGROK_REGION: sa

test-windows:
runs-on: windows-2022
# secrets:
# NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
# SSH_PASS: ${{ secrets.SSH_PASS }}
strategy:
matrix:
python-version: ["3.7", "3.9", "3.10"]
arch: ["x64"]

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
Expand Down Expand Up @@ -126,4 +146,13 @@ jobs:
run: |
python -c 'import libtorrent as lt; print(lt.__version__)';
python -c 'from twisted.internet import gireactor; reactor = gireactor.install()'
python -X dev -m pytest -vvv -ra --full-trace --showlocals -m "not (todo or security)" -p no:faulthandler .
python -X dev -m pytest -vvv -ra --full-trace --showlocals -m "not (todo or security)" -p no:faulthandler deluge
- name: Start SSH session
uses: Lord-Kamina/debug-via-ssh@main
if: ${{ failure() }}
id: ssh_debug
with:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
SSH_PASS: ${{ secrets.SSH_PASS }}
NGROK_REGION: sa

0 comments on commit 6f2d7d0

Please sign in to comment.