Skip to content

Commit b3fcc86

Browse files
committed
ci: use llvm coverage
1 parent f6bb9b4 commit b3fcc86

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,12 @@ jobs:
149149
steps:
150150
- uses: actions/checkout@v4
151151
- uses: dtolnay/rust-toolchain@stable
152-
with:
153-
toolchain: nightly
154-
override: true
152+
- uses: taiki-e/install-action@cargo-llvm-cov
153+
155154
- name: Install pyo3-asyncio test dependencies
156-
run: |
157-
python -m pip install -U uvloop
158-
- uses: actions-rs/cargo@v1
159-
with:
160-
command: test
161-
args: --all-features
162-
env:
163-
CARGO_INCREMENTAL: 0
164-
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
165-
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Coverflow-checks=off"
166-
- uses: actions-rs/[email protected]
167-
id: coverage
168-
- uses: codecov/codecov-action@v4
155+
run: python -m pip install -U uvloop
156+
157+
- run: cargo llvm-cov --all-features --codecov --output-path coverage.json
158+
- uses: codecov/codecov-action@v5
169159
with:
170-
file: ${{ steps.coverage.outputs.report }}
160+
files: coverage.json

0 commit comments

Comments
 (0)