Skip to content

Commit

Permalink
try switching to taiki-e/install-action@cargo-llvm-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed May 21, 2024
1 parent fc3c3cd commit aa28c39
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,9 @@ jobs:
with:
prefix-key: "v1-rust"

- run: cargo install rustfilt coverage-prepare cargo-careful
if: steps.cache-rust.outputs.cache-hit != 'true'
- uses: taiki-e/install-action@cargo-llvm-cov

- run: rustup component add llvm-tools-preview

- run: cargo test -F python
env:
RUST_BACKTRACE: 1
RUSTFLAGS: '-C instrument-coverage'

- run: coverage-prepare --ignore-filename-regex '/tests/' lcov $(find ../../target/debug/deps -regex '.*/main[^.]*')
working-directory: crates/jiter
- run: cargo llvm-cov --all-features --codecov --output-path codecov.json

- run: cargo test --doc

Expand All @@ -59,6 +50,7 @@ jobs:

- uses: codecov/codecov-action@v3
with:
files: codecov.json
env_vars: RUNS_ON,RUST_VERSION
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down Expand Up @@ -88,23 +80,15 @@ jobs:
- id: cache-rust
uses: Swatinem/rust-cache@v2

- run: cargo install rustfilt coverage-prepare
if: steps.cache-rust.outputs.cache-hit != 'true'

- run: rustup component add llvm-tools-preview

- run: cargo test -F python
env:
RUST_BACKTRACE: 1
RUSTFLAGS: '-C instrument-coverage'
- uses: taiki-e/install-action@cargo-llvm-cov

- run: coverage-prepare --ignore-filename-regex '/tests/' lcov $(find ../../target/debug/deps -regex '.*/main[^.]*')
working-directory: crates/jiter
- run: cargo llvm-cov --all-features --codecov --output-path codecov.json

- run: cargo test --doc

- uses: codecov/codecov-action@v3
with:
files: codecov.json
env_vars: RUNS_ON,RUST_VERSION
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down

0 comments on commit aa28c39

Please sign in to comment.