Skip to content

Commit

Permalink
Merge pull request #1795 from davidhewitt/update-cargo-llvm-cov
Browse files Browse the repository at this point in the history
ci: update cargo-llvm-cov
  • Loading branch information
davidhewitt committed Aug 16, 2021
2 parents eafc75a + b1abe03 commit 336e87e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
# NB: doesn't include target dir so that the coverage stats are fresh
# each run.
path: |
~/.cargo/registry
~/.cargo/git
Expand All @@ -223,22 +225,20 @@ jobs:
wget https://github.com/taiki-e/cargo-llvm-cov/releases/download/v${CARGO_LLVM_COV_VERSION}/cargo-llvm-cov-x86_64-unknown-linux-gnu.tar.gz -qO- | tar -xzvf -
mv cargo-llvm-cov ~/.cargo/bin
env:
CARGO_LLVM_COV_VERSION: 0.1.0-alpha.5
CARGO_LLVM_COV_VERSION: 0.1.0
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
profile: minimal
components: llvm-tools-preview
# TODO: workaround for
# https://github.com/taiki-e/cargo-llvm-cov/issues/48, shouldn't be needed
# in next cargo-llvm-cov release.
- run: cargo clean
- run: |
cargo llvm-cov \
--package pyo3 pyo3-build-config pyo3-macros-backend pyo3-macros \
--features "macros num-bigint num-complex hashbrown indexmap serde" \
--lcov --output-path coverage.lcov
cargo llvm-cov --package $ALL_PACKAGES --no-report
cargo llvm-cov --package $ALL_PACKAGES --no-report --features abi3
cargo llvm-cov --package $ALL_PACKAGES --no-report --features macros num-bigint num-complex hashbrown indexmap serde multiple-pymethods
cargo llvm-cov --package $ALL_PACKAGES --no-run --lcov --output-path coverage.lcov
env:
ALL_PACKAGES: pyo3 pyo3-build-config pyo3-macros-backend pyo3-macros
- uses: codecov/codecov-action@v1
with:
file: coverage.lcov
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ serde = {version = "1.0", optional = true}
assert_approx_eq = "1.1.0"
# O.3.5 uses the matches! macro, which isn't compatible with Rust 1.41
criterion = "=0.3.4"
# Pinned for cargo-llvm-cov, see https://github.com/taiki-e/cargo-llvm-cov/issues/32
trybuild = "1.0.43"
trybuild = "1.0.45"
rustversion = "1.0"
proptest = { version = "0.10.1", default-features = false, features = ["std"] }
# features needed to run the PyO3 test suite
Expand Down

0 comments on commit 336e87e

Please sign in to comment.