File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
Expand file tree Collapse file tree 2 files changed +34
-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
You can’t perform that action at this time.
0 commit comments