Skip to content

Commit d21ee54

Browse files
committed
test(githubci): incrase duration of tmate shell on test runner
Also move it after the install of the pytest and other environment code.
1 parent ec9d00b commit d21ee54

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/ci-test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,6 @@ jobs:
102102
# continue-on-error: true
103103
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
104104

105-
# https://github.com/mxschmitt/action-tmate
106-
# allow remote ssh into the CI container. I need this to debug
107-
# some xfail cases
108-
- name: Setup tmate session
109-
uses: mxschmitt/action-tmate@v3
110-
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
111-
timeout-minutes: 2
112-
with:
113-
limit-access-to-actor: true
114-
115105
# Setup version of Python to use
116106
- name: Set Up Python ${{ matrix.python-version }}
117107
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
@@ -138,6 +128,16 @@ jobs:
138128
- name: Install pytest and other packages needed for running tests
139129
run: pip install flake8 hypothesis mock pytest pytest-cov requests sphinx-tabs
140130

131+
# https://github.com/mxschmitt/action-tmate
132+
# allow remote ssh into the CI container. I need this to debug
133+
# some xfail cases
134+
- name: Setup tmate session
135+
uses: mxschmitt/action-tmate@v3
136+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
137+
timeout-minutes: 10
138+
with:
139+
limit-access-to-actor: true
140+
141141
- name: run flake8 - abort for syntax error, otherwise warn only
142142
run: |
143143
# stop the build for Python syntax errors or undefined names

0 commit comments

Comments
 (0)