@@ -130,11 +130,61 @@ jobs:
130
130
name : coverage-${{ matrix.python-version }}
131
131
path : .coverage
132
132
133
+ tests-linux-dev :
134
+ name : tests / run / ${{ matrix.python-version }} / Linux
135
+ runs-on : ubuntu-latest
136
+ timeout-minutes : 20
137
+ strategy :
138
+ matrix :
139
+ python-version : ["3.11-dev"]
140
+ steps :
141
+ - name : Check out code from GitHub
142
+
143
+ - name : Set up Python ${{ matrix.python-version }}
144
+ id : python
145
+
146
+ with :
147
+ python-version : ${{ matrix.python-version }}
148
+ - name : Generate partial Python venv restore key
149
+ id : generate-python-key
150
+ run : >-
151
+ echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{
152
+ hashFiles('setup.cfg', 'requirements_test.txt', 'requirements_test_min.txt',
153
+ 'requirements_test_brain.txt') }}"
154
+ - name : Restore Python virtual environment
155
+ id : cache-venv
156
+
157
+ with :
158
+ path : venv
159
+ key : >-
160
+ ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
161
+ steps.generate-python-key.outputs.key }}
162
+ restore-keys : |
163
+ ${{ runner.os }}-${{ steps.python.outputs.python-version }}-venv-${{ env.CACHE_VERSION }}-
164
+ - name : Create Python virtual environment
165
+ if : steps.cache-venv.outputs.cache-hit != 'true'
166
+ run : |
167
+ python -m venv venv
168
+ . venv/bin/activate
169
+ python -m pip install -U pip setuptools wheel
170
+ pip install -U -r requirements_test.txt -r requirements_test_brain.txt
171
+ pip install -e .
172
+ - name : Run pytest
173
+ run : |
174
+ . venv/bin/activate
175
+ pytest --cov --cov-report= tests/
176
+ - name : Upload coverage artifact
177
+
178
+ with :
179
+ name : coverage-${{ matrix.python-version }}
180
+ path : .coverage
181
+
133
182
coverage :
134
183
name : tests / process / coverage
135
184
runs-on : ubuntu-latest
136
185
timeout-minutes : 5
137
- needs : ["tests-linux"]
186
+ needs : ["tests-linux", "tests-linux-dev"]
187
+ if : always() # remove together with tests-linux-dev
138
188
strategy :
139
189
matrix :
140
190
python-version : [3.8]
0 commit comments