Skip to content

Commit

Permalink
Use tmate when tests fail
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Minor <[email protected]>
  • Loading branch information
jminor committed Jun 17, 2024
1 parent 32425a5 commit 838b981
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 838b981

Please sign in to comment.