Skip to content

Commit d9bf089

Browse files
committed
ci: add doc tests (nextest doesn't support them)
1 parent faba6be commit d9bf089

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/scripts/ci_config.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,19 @@ def run_group_tests(args):
168168
if result.returncode != 0:
169169
failed.append(crate)
170170
github_error(f"Test failed for {crate} on {args.os}")
171+
continue
172+
173+
# Run doc tests (nextest doesn't support them)
174+
github_group_start(f"Doc tests {crate}")
175+
176+
cmd = ["cargo", "test", "--doc", "-p", crate, "--all-features"]
177+
result = subprocess.run(cmd)
178+
179+
github_group_end()
180+
181+
if result.returncode != 0:
182+
failed.append(f"{crate} (doc)")
183+
github_error(f"Doc test failed for {crate} on {args.os}")
171184

172185
if failed:
173186
print("\n" + "=" * 40)

0 commit comments

Comments
 (0)