ci: simplify job steps
This commit is contained in:
parent
d1542a8a79
commit
bc2ea552b2
|
@ -259,19 +259,10 @@ jobs:
|
||||||
override: true
|
override: true
|
||||||
profile: minimal
|
profile: minimal
|
||||||
components: llvm-tools-preview
|
components: llvm-tools-preview
|
||||||
- name: install cargo-llvm-cov
|
- name: Install cargo-llvm-cov
|
||||||
shell: bash
|
uses: taiki-e/install-action@cargo-llvm-cov
|
||||||
run: |
|
|
||||||
host=$(rustc -Vv | grep host | sed 's/host: //')
|
|
||||||
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:
|
|
||||||
CARGO_LLVM_COV_VERSION: 0.1.15
|
|
||||||
- run: pip install -U pip nox
|
- run: pip install -U pip nox
|
||||||
- run: |
|
- run: cargo xtask coverage --output-lcov coverage.lcov
|
||||||
cargo xtask coverage --output-lcov coverage.lcov
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue