Skip to content

Update linear regression (predict a fitted model). #37

Update linear regression (predict a fitted model).

Update linear regression (predict a fitted model). #37

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@v3
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 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/*
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# UPLOAD CODE COVERAGE REPORT TO CODECOV.IO
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- name: Upload coverage reports to Codecov.io
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true