Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code coverage in ci #109

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
repository: Plonky3/Plonky3
path: Plonky3

- name: Checkout Valida
uses: actions/checkout@v4
with:
Expand All @@ -40,6 +40,33 @@ jobs:
working-directory: valida
run: cargo test

coverage:
name: Code coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined

steps:
- name: Checkout Plonky3
uses: actions/checkout@v4
with:
repository: Plonky3/Plonky3
path: Plonky3

- name: Checkout Valida
uses: actions/checkout@v4
with:
path: valida

- name: Generate code coverage
working-directory: valida
run: |
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml

- name: Upload to codecov.io
uses: codecov/codecov-action@v2

lints:
name: Lints
runs-on: ubuntu-latest
Expand Down
Loading