Skip to content

Commit

Permalink
Merge pull request anoma#57 from nucypher/codecov-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec authored Jan 30, 2023
2 parents af53b72 + 89d9453 commit 027eff3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,29 @@ jobs:
- run: cargo check --all-features
- run: cargo test --release --all-features

codecov:
runs-on: ubuntu-latest
needs: [ test ]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: x86_64-unknown-linux-gnu
override: true
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
# Only checking the coverage of the main library,
# bindings are covered by their language's tests.
- name: Generate code coverage
run: cargo llvm-cov --workspace --lcov --output-path lcov.info --all-features
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: lcov.info
fail_ci_if_error: true

benchmark:
runs-on: ubuntu-latest
needs: [ test ]
Expand Down

0 comments on commit 027eff3

Please sign in to comment.