Skip to content

Commit

Permalink
ci: rearrange doc test to shorten the testing time (#975)
Browse files Browse the repository at this point in the history
* feat(ci): rearrange doc test to shorten the testing time

* doc(ci): improve the names of jobs

* ci: use shorter name for better visualization
  • Loading branch information
YuanYuYuan authored Apr 25, 2024
1 parent 274166d commit 7c64d99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ env:

jobs:
check:
name: Run checks on ${{ matrix.os }}
name: Lints and doc tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -66,8 +66,11 @@ jobs:
- name: Perform no_std checks
run: cargo check --bin nostd_check --target x86_64-unknown-none --manifest-path ci/nostd-check/Cargo.toml

- name: Run doctests
run: cargo test --doc

test:
name: Run tests on ${{ matrix.os }}
name: Unit tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -105,9 +108,6 @@ jobs:
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo nextest run -p zenohd --no-default-features

- name: Run doctests
run: cargo test --doc

valgrind:
name: Memory leak checks
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7c64d99

Please sign in to comment.