Skip to content

Commit

Permalink
Add codecov step to test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacholt100 committed Sep 23, 2023
1 parent f8ffc98 commit 95206d1
Showing 1 changed file with 39 additions and 22 deletions.
61 changes: 39 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,42 @@ env:
CARGO_TERM_COLOR: always

jobs:
build_stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest stable Rust
run: rustup install stable
- name: Check crate builds on stable
run: cargo build --features serde,numtraits,rand,arbitrary && cargo build
test_nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest nightly Rust
run: rustup install nightly
- name: Set nightly as default
run: rustup default nightly
- name: Build
run: cargo build --all-features --verbose
- name: Run tests
run: sh scripts/run_all_tests.sh
- name: Run doc tests
run: cargo test --all-features --doc && cargo test --doc
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
args: "--all-features"
build_stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest stable Rust
run: rustup install stable
- name: Check crate builds on stable
run: cargo build --features serde,numtraits,rand,arbitrary && cargo build
- name: Upload to codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
test_nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest nightly Rust
run: rustup install nightly
- name: Set nightly as default
run: rustup default nightly
- name: Build
run: cargo build --all-features --verbose
- name: Run tests
run: sh scripts/run_all_tests.sh
- name: Run doc tests
run: cargo test --all-features --doc && cargo test --doc

0 comments on commit 95206d1

Please sign in to comment.