ci: Move doctests to a separate parallel job (#38111)

Follow on from #37851 

This may reduce CI time by running doctests in parallel with other
tests. It also makes it easier to find the results.

Example output:
https://github.com/zed-industries/zed/actions/runs/17698218116/job/50300398669?pr=38111

At least on this run, the doctests finished before the main Linux tests,
which makes sense because there are many fewer doctests. So they should
not be on the critical path.

Thanks @maxdeviant for the prompt.

<img width="615" height="513" alt="image"
src="https://github.com/user-attachments/assets/bcafa636-a68c-4602-97f4-61f7904e6a7b"
/>


Release Notes:

- N/A
This commit is contained in:
Martin Pool
2025-09-14 12:01:00 -04:00
committed by GitHub
parent 85aa458b9c
commit 256a91019a
2 changed files with 40 additions and 5 deletions
-5
View File
@@ -21,8 +21,3 @@ runs:
- name: Run tests
shell: bash -euxo pipefail {0}
run: cargo nextest run --workspace --no-fail-fast
- name: Run doctests
shell: bash -euxo pipefail {0}
# Nextest currently doesn't support doctests
run: cargo test --workspace --doc --no-fail-fast