comparison .github/workflows/ci-test.yml @ 7852:9e686e3f39c1

test(githubci): incrase duration of tmate shell on test runner Also move it after the install of the pytest and other environment code.
author John Rouillard <rouilj@ieee.org>
date Sun, 31 Mar 2024 01:49:07 -0400
parents c4021512f198
children d26eb77e01d8
comparison
equal deleted inserted replaced
7851:5be92f16a684 7852:9e686e3f39c1
100 # if: {{ false }} 100 # if: {{ false }}
101 # continue running if step fails 101 # continue running if step fails
102 # continue-on-error: true 102 # continue-on-error: true
103 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 103 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
104 104
105 # Setup version of Python to use
106 - name: Set Up Python ${{ matrix.python-version }}
107 uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
108 with:
109 python-version: ${{ matrix.python-version }}
110 allow-prereleases: true
111 cache: 'pip'
112
113 - name: Install build tools - setuptools
114 run: pip install setuptools
115
116 # Display the Python version being used
117 - name: Display Python and key module versions
118 run: |
119 python -c "import sys; print('python version: ', sys.version)"
120 python -c "import sqlite3; print('sqlite version: ', sqlite3.sqlite_version)"
121 python -c "import setuptools; print('setuptools version: ', setuptools.__version__);"
122
123 - name: Update pip
124 run: python -m pip install --upgrade pip
125
126 # note pytest-env is not needed for redis password as there is
127 # no password on CI's redis.
128 - name: Install pytest and other packages needed for running tests
129 run: pip install flake8 hypothesis mock pytest pytest-cov requests sphinx-tabs
130
105 # https://github.com/mxschmitt/action-tmate 131 # https://github.com/mxschmitt/action-tmate
106 # allow remote ssh into the CI container. I need this to debug 132 # allow remote ssh into the CI container. I need this to debug
107 # some xfail cases 133 # some xfail cases
108 - name: Setup tmate session 134 - name: Setup tmate session
109 uses: mxschmitt/action-tmate@v3 135 uses: mxschmitt/action-tmate@v3
110 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} 136 if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
111 timeout-minutes: 2 137 timeout-minutes: 10
112 with: 138 with:
113 limit-access-to-actor: true 139 limit-access-to-actor: true
114
115 # Setup version of Python to use
116 - name: Set Up Python ${{ matrix.python-version }}
117 uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
118 with:
119 python-version: ${{ matrix.python-version }}
120 allow-prereleases: true
121 cache: 'pip'
122
123 - name: Install build tools - setuptools
124 run: pip install setuptools
125
126 # Display the Python version being used
127 - name: Display Python and key module versions
128 run: |
129 python -c "import sys; print('python version: ', sys.version)"
130 python -c "import sqlite3; print('sqlite version: ', sqlite3.sqlite_version)"
131 python -c "import setuptools; print('setuptools version: ', setuptools.__version__);"
132
133 - name: Update pip
134 run: python -m pip install --upgrade pip
135
136 # note pytest-env is not needed for redis password as there is
137 # no password on CI's redis.
138 - name: Install pytest and other packages needed for running tests
139 run: pip install flake8 hypothesis mock pytest pytest-cov requests sphinx-tabs
140 140
141 - name: run flake8 - abort for syntax error, otherwise warn only 141 - name: run flake8 - abort for syntax error, otherwise warn only
142 run: | 142 run: |
143 # stop the build for Python syntax errors or undefined names 143 # stop the build for Python syntax errors or undefined names
144 # talgettext is a utility function ignore it. 144 # talgettext is a utility function ignore it.

Roundup Issue Tracker: http://roundup-tracker.org/