Regroup CI doctests and adjust `unit-tests` recipe
Unified · Split
| @@ -181,8 +181,6 @@ jobs: · 180 unmodified lines | |||
| 181 | env: | 181 | env: |
| 182 | GIX_TEST_CREATE_ARCHIVES_EVEN_ON_CI: '1' | 182 | GIX_TEST_CREATE_ARCHIVES_EVEN_ON_CI: '1' |
| 183 | run: cargo nextest run --workspace --no-fail-fast | 183 | run: cargo nextest run --workspace --no-fail-fast |
| 184 | - name: Doctest | ||
| 185 | run: cargo test --workspace --doc --no-fail-fast | ||
| 186 | - name: Check that tracked archives are up to date | 184 | - name: Check that tracked archives are up to date |
| 187 | run: git diff --exit-code # If this fails, the fix is usually to commit a regenerated archive. | 185 | run: git diff --exit-code # If this fails, the fix is usually to commit a regenerated archive. |
| 188 | 186 | ||
| @@ -277,7 +275,7 @@ jobs: · 88 unmodified lines | |||
| 277 | GIX_TEST_IGNORE_ARCHIVES: '1' | 275 | GIX_TEST_IGNORE_ARCHIVES: '1' |
| 278 | run: cargo nextest run --workspace --no-fail-fast | 276 | run: cargo nextest run --workspace --no-fail-fast |
| 279 | 277 | ||
| 280 | test-32bit-windows-size: | 278 | test-32bit-windows-size-doc: |
| 281 | runs-on: windows-latest | 279 | runs-on: windows-latest |
| 282 | 280 | ||
| 283 | env: | 281 | env: |
| @@ -292,8 +290,10 @@ jobs: · 8 unmodified lines | |||
| 292 | - uses: taiki-e/install-action@v2 | 290 | - uses: taiki-e/install-action@v2 |
| 293 | with: | 291 | with: |
| 294 | tool: nextest | 292 | tool: nextest |
| 295 | - name: Test (nextest) | 293 | - name: Test data structure sizes (nextest) |
| 296 | run: cargo nextest run --target $env:TARGET --workspace --no-fail-fast size | 294 | run: cargo nextest run --target $env:TARGET --workspace --no-fail-fast size |
| 295 | - name: Doctest | ||
| 296 | run: cargo test --workspace --doc --no-fail-fast | ||
| 297 | 297 | ||
| 298 | lint: | 298 | lint: |
| 299 | runs-on: ubuntu-latest | 299 | runs-on: ubuntu-latest |
| @@ -497,7 +497,7 @@ jobs: · 197 unmodified lines | |||
| 497 | - test-fast | 497 | - test-fast |
| 498 | - test-fixtures-windows | 498 | - test-fixtures-windows |
| 499 | - test-32bit | 499 | - test-32bit |
| 500 | - test-32bit-windows-size | 500 | - test-32bit-windows-size-doc |
| 501 | - lint | 501 | - lint |
| 502 | - cargo-deny | 502 | - cargo-deny |
| 503 | - check-packetline | 503 | - check-packetline |
| @@ -144,41 +144,41 @@ doc $RUSTDOCFLAGS='-D warnings': · 143 unmodified lines | |||
| 144 | 144 | ||
| 145 | # Run all unit tests | 145 | # Run all unit tests |
| 146 | unit-tests: | 146 | unit-tests: |
| 147 | cargo nextest run | 147 | cargo nextest run --no-fail-fast |
| 148 | cargo test --doc | 148 | cargo nextest run -p gix-testtools --no-fail-fast |
| 149 | cargo nextest run -p gix-testtools | 149 | cargo nextest run -p gix-testtools --features xz --no-fail-fast |
| 150 | cargo nextest run -p gix-testtools --features xz | 150 | cargo nextest run -p gix-archive --no-default-features --no-fail-fast |
| 151 | cargo nextest run -p gix-archive --no-default-features | 151 | cargo nextest run -p gix-archive --features tar --no-fail-fast |
| 152 | cargo nextest run -p gix-archive --features tar | 152 | cargo nextest run -p gix-archive --features tar_gz --no-fail-fast |
| 153 | cargo nextest run -p gix-archive --features tar_gz | 153 | cargo nextest run -p gix-archive --features zip --no-fail-fast |
| 154 | cargo nextest run -p gix-archive --features zip | 154 | cargo nextest run -p gix-status-tests --features gix-features-parallel --no-fail-fast |
| 155 | cargo nextest run -p gix-status-tests --features gix-features-parallel | 155 | cargo nextest run -p gix-worktree-state-tests --features gix-features-parallel --no-fail-fast |
| 156 | cargo nextest run -p gix-worktree-state-tests --features gix-features-parallel | 156 | cargo nextest run -p gix-worktree-tests --features gix-features-parallel --no-fail-fast |
| 157 | cargo nextest run -p gix-worktree-tests --features gix-features-parallel | 157 | cargo nextest run -p gix-object --no-fail-fast |
| 158 | cargo nextest run -p gix-object | 158 | cargo nextest run -p gix-object --features verbose-object-parsing-errors --no-fail-fast |
| 159 | cargo nextest run -p gix-object --features verbose-object-parsing-errors | 159 | cargo nextest run -p gix-tempfile --features signals --no-fail-fast |
| 160 | cargo nextest run -p gix-tempfile --features signals | 160 | cargo nextest run -p gix-features --all-features --no-fail-fast |
| 161 | cargo nextest run -p gix-features --all-features | 161 | cargo nextest run -p gix-ref-tests --all-features --no-fail-fast |
| 162 | cargo nextest run -p gix-ref-tests --all-features | 162 | cargo nextest run -p gix-odb --all-features --no-fail-fast |
| 163 | cargo nextest run -p gix-odb --all-features | 163 | cargo nextest run -p gix-odb-tests --features gix-features-parallel --no-fail-fast |
| 164 | cargo nextest run -p gix-odb-tests --features gix-features-parallel | 164 | cargo nextest run -p gix-pack --all-features --no-fail-fast |
| 165 | cargo nextest run -p gix-pack --all-features | 165 | cargo nextest run -p gix-pack-tests --features all-features --no-fail-fast |
| 166 | cargo nextest run -p gix-pack-tests --features all-features | 166 | cargo nextest run -p gix-pack-tests --features gix-features-parallel --no-fail-fast |
| 167 | cargo nextest run -p gix-pack-tests --features gix-features-parallel | 167 | cargo nextest run -p gix-index-tests --features gix-features-parallel --no-fail-fast |
| 168 | cargo nextest run -p gix-index-tests --features gix-features-parallel | 168 | cargo nextest run -p gix-packetline --features blocking-io,maybe-async/is_sync --test blocking-packetline --no-fail-fast |
| 169 | cargo nextest run -p gix-packetline --features blocking-io,maybe-async/is_sync --test blocking-packetline | 169 | cargo nextest run -p gix-packetline --features async-io --test async-packetline --no-fail-fast |
| 170 | cargo nextest run -p gix-packetline --features async-io --test async-packetline | 170 | cargo nextest run -p gix-transport --features http-client-curl,maybe-async/is_sync --no-fail-fast |
| 171 | cargo nextest run -p gix-transport --features http-client-curl,maybe-async/is_sync | 171 | cargo nextest run -p gix-transport --features http-client-reqwest,maybe-async/is_sync --no-fail-fast |
| 172 | cargo nextest run -p gix-transport --features http-client-reqwest,maybe-async/is_sync | 172 | cargo nextest run -p gix-transport --features async-client --no-fail-fast |
| 173 | cargo nextest run -p gix-transport --features async-client | 173 | cargo nextest run -p gix-protocol --features blocking-client --no-fail-fast |
| 174 | cargo nextest run -p gix-protocol --features blocking-client | 174 | cargo nextest run -p gix-protocol --features async-client --no-fail-fast |
| 175 | cargo nextest run -p gix-protocol --features async-client | 175 | cargo nextest run -p gix --no-default-features --no-fail-fast |
| 176 | cargo nextest run -p gix --no-default-features | 176 | cargo nextest run -p gix --no-default-features --features basic,comfort,max-performance-safe --no-fail-fast |
| 177 | cargo nextest run -p gix --no-default-features --features basic,comfort,max-performance-safe | 177 | cargo nextest run -p gix --no-default-features --features basic,extras,comfort,need-more-recent-msrv --no-fail-fast |
| 178 | cargo nextest run -p gix --no-default-features --features basic,extras,comfort,need-more-recent-msrv | 178 | cargo nextest run -p gix --features async-network-client --no-fail-fast |
| 179 | cargo nextest run -p gix --features async-network-client | 179 | cargo nextest run -p gix --features blocking-network-client --no-fail-fast |
| 180 | cargo nextest run -p gix --features blocking-network-client | 180 | cargo nextest run -p gitoxide-core --lib --no-tests=warn --no-fail-fast |
| 181 | cargo nextest run -p gitoxide-core --lib --no-tests=warn | 181 | cargo test --workspace --doc --no-fail-fast |
| 182 | 182 | ||
| 183 | # These tests aren't run by default as they are flaky (even locally) | 183 | # These tests aren't run by default as they are flaky (even locally) |
| 184 | unit-tests-flaky: | 184 | unit-tests-flaky: |