Commit 13b43cc 1 parent 2da4787 commit 13b43cc Copy full SHA for 13b43cc
File tree 2 files changed +34
-0
lines changed
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -162,3 +162,34 @@ jobs:
162
162
pip install tox
163
163
tox -c examples/linalg
164
164
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 15
15
* .egg-info /
16
16
** /dist /
17
17
__pycache__
18
+
19
+ # Coverage files
20
+ * .lcov
You can’t perform that action at this time.
0 commit comments