From 838b981b0cced71bb082914f6d6ba47663737ea3 Mon Sep 17 00:00:00 2001 From: Joshua Minor Date: Sun, 16 Jun 2024 23:34:09 -0700 Subject: [PATCH] Use tmate when tests fail Signed-off-by: Joshua Minor --- .github/workflows/python-package.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 82cbec28b..9dfc2d7b6 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -156,6 +156,12 @@ jobs: pip install .[dev] -v - name: Run tests w/ python coverage run: make ci-postbuild + + # if tests fail, run tmate for remote debugging session + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 + # (only on ubuntu/pyhton3.7) - name: Generate C++ coverage report if: matrix.python-version == env.GH_COV_PY && matrix.os == env.GH_COV_OS && github.actor != env.GH_DEPENDABOT