@@ -163,6 +163,9 @@ jobs:
163
163
# needed to correctly format errors, see #1865
164
164
components : rust-src
165
165
166
+ - name : Install cargo-nextest
167
+ uses : taiki-e/install-action@nextest
168
+
166
169
- uses : Swatinem/rust-cache@v1
167
170
with :
168
171
key : cargo-${{ matrix.platform.python-architecture }}-${{ matrix.platform.os }}-${{ matrix.msrv }}
@@ -193,13 +196,13 @@ jobs:
193
196
# Run tests (except on PyPy, because no embedding API).
194
197
- if : ${{ !startsWith(matrix.python-version, 'pypy') }}
195
198
name : Test (no features)
196
- run : cargo test --no-default-features --lib --tests
199
+ run : cargo nextest run --no-default-features --lib --tests
197
200
198
201
# --no-default-features when used with `cargo build/test -p` doesn't seem to work!
199
202
- name : Test pyo3-build-config (no features)
200
203
run : |
201
204
cd pyo3-build-config
202
- cargo test --no-default-features
205
+ cargo nextest run --no-default-features
203
206
204
207
- name : Build (all additive features)
205
208
run : cargo build --lib --tests --no-default-features --features "full ${{ matrix.extra_features }}"
@@ -211,23 +214,23 @@ jobs:
211
214
# Run tests (except on PyPy, because no embedding API).
212
215
- if : ${{ !startsWith(matrix.python-version, 'pypy') }}
213
216
name : Test
214
- run : cargo test --no-default-features --features "full ${{ matrix.extra_features }}"
217
+ run : cargo nextest run --no-default-features --features "full ${{ matrix.extra_features }}"
215
218
216
219
# Run tests again, but in abi3 mode
217
220
- if : ${{ !startsWith(matrix.python-version, 'pypy') }}
218
221
name : Test (abi3)
219
- run : cargo test --no-default-features --features "abi3 full ${{ matrix.extra_features }}"
222
+ run : cargo nextest run --no-default-features --features "abi3 full ${{ matrix.extra_features }}"
220
223
221
224
# Run tests again, for abi3-py37 (the minimal Python version)
222
225
- if : ${{ (!startsWith(matrix.python-version, 'pypy')) && (matrix.python-version != '3.7') }}
223
226
name : Test (abi3-py37)
224
- run : cargo test --no-default-features --features "abi3-py37 full ${{ matrix.extra_features }}"
227
+ run : cargo nextest run --no-default-features --features "abi3-py37 full ${{ matrix.extra_features }}"
225
228
226
229
- name : Test proc-macro code
227
- run : cargo test --manifest-path=pyo3-macros-backend/Cargo.toml
230
+ run : cargo nextest run --manifest-path=pyo3-macros-backend/Cargo.toml
228
231
229
232
- name : Test build config
230
- run : cargo test --manifest-path=pyo3-build-config/Cargo.toml
233
+ run : cargo nextest run --manifest-path=pyo3-build-config/Cargo.toml
231
234
232
235
- name : Test python examples and tests
233
236
shell : bash
0 commit comments