on: push
name: test
permissions:
contents: read
jobs:
run-tests:
runs-on: ubuntu-24.04
container:
image: xd009642/tarpaulin:0.32.7
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Generate code coverage
run: |
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v5.5.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Archive code coverage results
uses: actions/upload-artifact@v6
with:
name: code-coverage-report
path: cobertura.xml