Merge pull request #1795 from davidhewitt/update-cargo-llvm-cov

ci: update cargo-llvm-cov
This commit is contained in:
David Hewitt 2021-08-16 08:17:02 +01:00 committed by GitHub
commit 336e87ec18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 11 deletions

View File

@ -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
@ -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

View File

@ -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