Skip to content

Merge pull request #290 from avhz/release-plz-2024-11-19T19-49-18Z #152

Merge pull request #290 from avhz/release-plz-2024-11-19T19-49-18Z

Merge pull request #290 from avhz/release-plz-2024-11-19T19-49-18Z #152

Workflow file for this run

name: Code Coverage Report.
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
code_coverage_report:
runs-on: ubuntu-latest
# container:
# image: xd009642/tarpaulin:latest
# options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v4
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# INSTALL TARPALUIN FOR CODE COVERAGE
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- name: Install Tarpaulin.
run: cargo install cargo-tarpaulin
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# GENERATE CODE COVERAGE REPORT
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- name: Generate code coverage report.
run:
cargo tarpaulin
--verbose
--all-features
--workspace
--timeout 120
--out Xml
--exclude-files src/lib.rs src/trading/* src/interactive/*
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# UPLOAD CODE COVERAGE REPORT TO CODECOV.IO
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- name: Upload coverage reports to Codecov.io
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}