Make the TensorBase
trait generic in its dimensionality
#62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [master] | |
paths: | |
- '**.rs' | |
- '.github/workflows/*' | |
- 'Cargo.toml' | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
paths: | |
- '**.rs' | |
- '.github/workflows/*' | |
- 'Cargo.toml' | |
jobs: | |
unit-test-coverage: | |
name: Unit test coverage | |
runs-on: ubuntu-latest | |
env: | |
CARGO_TERM_COLOR: always | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: rustup update nightly | |
- name: Set nightly as default | |
run: rustup default nightly | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Run tests and calculate code coverage | |
run: cargo llvm-cov --json --summary-only | jq '.' > coverage.json | |
- name: Upload code coverage | |
uses: actions/upload-artifact@v3 | |
with: | |
name: code-coverage-report | |
path: coverage.json | |
retention-days: 7 | |
- name: Print total line coverage | |
run: jq '.["data"][0]["totals"]["lines"]["percent"]' coverage.json |