Skip to content

Commit

Permalink
Merge pull request #2125 from PyO3/davidhewitt-patch-1
Browse files Browse the repository at this point in the history
ci: simplify coverage job steps
  • Loading branch information
davidhewitt committed Jan 25, 2022
2 parents d1542a8 + bc2ea55 commit 6b95118
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,19 +259,10 @@ jobs:
override: true
profile: minimal
components: llvm-tools-preview
- name: install cargo-llvm-cov
shell: bash
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
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- run: pip install -U pip nox
- run: |
cargo xtask coverage --output-lcov coverage.lcov
shell: bash
env:
ALL_PACKAGES: pyo3 pyo3-build-config pyo3-macros-backend pyo3-macros
- run: cargo xtask coverage --output-lcov coverage.lcov
- uses: codecov/codecov-action@v2
with:
file: coverage.lcov
Expand Down

0 comments on commit 6b95118

Please sign in to comment.