A simple GM Halo2 circuit for testing #37
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 Coverage | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths-ignore: ['**/Dockerfile', '**/public/**', '**/.*ignore', '**/*.toml'] | |
push: | |
branches: [main, staging] | |
paths-ignore: ['**/Dockerfile', '**/public/**', '**/.*ignore', '**/*.toml'] | |
jobs: | |
test-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Clone submodules | |
run: git submodule update --init --recursive | |
- name: Set Git Identity | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
- name: Apply Patch Changes to the submodule | |
run: | | |
cd packages/probabilistic-encryption | |
git apply ../../submodules-changes.patch | |
- name: Install Rust toolchain 1.74 | |
run: rustup toolchain install nightly-2023-12-21 | |
- name: Install cargo-llvm-cov | |
run: cargo install cargo-llvm-cov | |
- name: Run tests with coverage | |
run: cargo llvm-cov --all-features --workspace --html --output-dir=target/llvm-cov/html | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report | |
path: target/llvm-cov/html | |