Merge pull request #1975 from davidhewitt/multiple-os-coverage
ci: try running coverage for all OSes
This commit is contained in:
commit
3044bd9615
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
|
@ -266,7 +266,11 @@ jobs:
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
needs: [fmt]
|
needs: [fmt]
|
||||||
runs-on: ubuntu-latest
|
name: coverage-${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: ["windows", "macos", "ubuntu"]
|
||||||
|
runs-on: ${{ matrix.os }}-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
|
@ -280,12 +284,19 @@ jobs:
|
||||||
target
|
target
|
||||||
key: coverage-cargo-${{ hashFiles('**/Cargo.toml') }}
|
key: coverage-cargo-${{ hashFiles('**/Cargo.toml') }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: nightly
|
||||||
|
override: true
|
||||||
|
profile: minimal
|
||||||
|
components: llvm-tools-preview
|
||||||
- name: install cargo-llvm-cov
|
- name: install cargo-llvm-cov
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
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 -
|
host=$(rustc -Vv | grep host | sed 's/host: //')
|
||||||
mv cargo-llvm-cov ~/.cargo/bin
|
curl -fsSL https://github.com/taiki-e/cargo-llvm-cov/releases/download/v${CARGO_LLVM_COV_VERSION}/cargo-llvm-cov-"$host".tar.gz | tar xzf - -C ~/.cargo/bin
|
||||||
env:
|
env:
|
||||||
CARGO_LLVM_COV_VERSION: 0.1.10
|
CARGO_LLVM_COV_VERSION: 0.1.11
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
|
@ -299,8 +310,10 @@ jobs:
|
||||||
cargo llvm-cov --package $ALL_PACKAGES --no-report --features $(make list_all_additive_features)
|
cargo llvm-cov --package $ALL_PACKAGES --no-report --features $(make list_all_additive_features)
|
||||||
cargo llvm-cov --package $ALL_PACKAGES --no-report --features abi3 $(make list_all_additive_features)
|
cargo llvm-cov --package $ALL_PACKAGES --no-report --features abi3 $(make list_all_additive_features)
|
||||||
cargo llvm-cov --package $ALL_PACKAGES --no-run --lcov --output-path coverage.lcov
|
cargo llvm-cov --package $ALL_PACKAGES --no-run --lcov --output-path coverage.lcov
|
||||||
|
shell: bash
|
||||||
env:
|
env:
|
||||||
ALL_PACKAGES: pyo3 pyo3-build-config pyo3-macros-backend pyo3-macros
|
ALL_PACKAGES: pyo3 pyo3-build-config pyo3-macros-backend pyo3-macros
|
||||||
- uses: codecov/codecov-action@v2
|
- uses: codecov/codecov-action@v2
|
||||||
with:
|
with:
|
||||||
file: coverage.lcov
|
file: coverage.lcov
|
||||||
|
name: ${{ matrix.os }}
|
||||||
|
|
Loading…
Reference in a new issue