Skip to content

Commit

Permalink
debug tmate
Browse files Browse the repository at this point in the history
  • Loading branch information
bernstei committed Feb 18, 2025
1 parent 8daceb6 commit 7c52fe9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ jobs:
flake8 wfl/ --count --exit-zero --max-complexity=20 --max-line-length=140 --ignore=E127,E128 --statistics
- name: Test with pytest - plain
id: pytests
continue-on-error: true
if: env.coverage-on-version != matrix.python-version
run: |
rm -rf $HOME/pytest_plain
Expand All @@ -276,7 +278,15 @@ jobs:
export WFL_JULIA_COMMAND=${PWD}/julia-1.8.1/bin/julia
pytest --runremote --basetemp $HOME/pytest_plain -rxXs tests/calculators/test_qe.py
# DEBUGGING
- name: Setup tmate session
if: steps.pytests.outcome == 'failure'
uses: mxschmitt/action-tmate@v3
timeout-minutes: 15

- name: Test with pytest - coverage
id: pytestsCov
continue-on-error: true
if: env.coverage-on-version == matrix.python-version
run: |
rm -rf $HOME/pytest_cov
Expand All @@ -293,7 +303,7 @@ jobs:
# DEBUGGING
- name: Setup tmate session
if: failure()
if: steps.pytestsCov.outcome == 'failure'
uses: mxschmitt/action-tmate@v3
timeout-minutes: 15

Expand Down

0 comments on commit 7c52fe9

Please sign in to comment.