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 c4ff29e
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 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,23 @@ jobs:
with:
name: crashes
path: /cores
- name: Start SSH session
uses: luchihoratiu/debug-via-ssh@main
if: failure()
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 +145,12 @@ 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: luchihoratiu/debug-via-ssh@main
if: failure()
with:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
SSH_PASS: ${{ secrets.SSH_PASS }}
NGROK_REGION: sa

0 comments on commit c4ff29e

Please sign in to comment.