diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c33bee61c..7ef595b1ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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"] @@ -76,14 +86,24 @@ jobs: with: name: crashes path: /cores + - name: Start SSH session + uses: luchihoratiu/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 @@ -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: luchihoratiu/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 +