File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed
Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -162,3 +162,34 @@ jobs:
162162 pip install tox
163163 tox -c examples/linalg
164164 tox -c examples/parallel
165+
166+ coverage :
167+ runs-on : ubuntu-latest
168+ steps :
169+ - uses : actions/checkout@v2
170+ - name : Set up Python
171+ uses : actions/setup-python@v2
172+ with :
173+ python-version : 3.9
174+ architecture : x64
175+ - name : Install numpy
176+ run : pip install numpy
177+ - uses : Swatinem/rust-cache@v1
178+ continue-on-error : true
179+ - uses : actions-rs/toolchain@v1
180+ with :
181+ # TODO: this is pinned to work around a rustc bug in instrumented coverage
182+ # https://github.com/taiki-e/cargo-llvm-cov/issues/128
183+ toolchain : nightly-2022-01-14
184+ override : true
185+ profile : minimal
186+ components : llvm-tools-preview
187+ - name : Install cargo-llvm-cov
188+ uses : taiki-e/install-action@cargo-llvm-cov
189+ - name : Generate code coverage
190+ run : cargo llvm-cov --lcov --output-path coverage.lcov
191+ - name : Upload coverage to Codecov
192+ uses : codecov/codecov-action@v2
193+ with :
194+ file : coverage.lcov
195+ fail_ci_if_error : true
Original file line number Diff line number Diff line change 1515* .egg-info /
1616** /dist /
1717__pycache__
18+
19+ # Coverage files
20+ * .lcov
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ rust-numpy
33[ ![ Actions Status] ( https://github.com/PyO3/rust-numpy/workflows/CI/badge.svg )] ( https://github.com/PyO3/rust-numpy/actions )
44[ ![ Crate] ( https://img.shields.io/crates/v/numpy.svg )] ( https://crates.io/crates/numpy )
55[ ![ Minimum rustc 1.48] ( https://img.shields.io/badge/rustc-1.48+-blue.svg )] ( https://rust-lang.github.io/rfcs/2495-min-rust-version.html )
6+ [ ![ Documentation] ( https://docs.rs/numpy/badge.svg )] ( https://docs.rs/numpy )
7+ [ ![ codecov] ( https://codecov.io/gh/PyO3/rust-numpy/branch/main/graph/badge.svg )] ( https://codecov.io/gh/PyO3/rust-numpy )
68
79Rust bindings for the NumPy C-API.
810
You can’t perform that action at this time.
0 commit comments