added unit tests for valid pdf estimation #112
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: CI | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
on: | |
push: | |
branches: [ main, develop, codecov ] | |
pull_request: | |
branches: [ main, develop ] | |
workflow_dispatch: | |
jobs: | |
R: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: sudo apt-get update | |
- run: sudo apt -y install libcurl4-openssl-dev | |
- run: sudo apt -y install pandoc | |
- run: sudo apt -y install r-base | |
- run: sudo apt-get -y install ghostscript | |
- run: sudo apt-get install -y libharfbuzz-dev | |
- run: sudo apt-get install -y libfribidi-dev | |
- run: mkdir R_packages/ | |
- run: Rscript -e 'install.packages(c("Matrix", "Rcpp", "ggplot2", "purrr", "MASS", "mvtnorm", "combinat", "stats", "covr", "testthat", "devtools", "spam", "roxygen2", "Rdpack", "RcppArmadillo"), lib="./R_packages/")' | |
- run: cd R/lpcde/ && Rscript -e '.libPaths("../../R_packages/"); library(covr); cov = package_coverage(); to_cobertura(cov)' | |
- uses: codecov/codecov-action@v4 | |
with: | |
files: ./R/lpcde/cobertura.xml | |
fail_ci_if_error: true | |
verbose: true | |
version: "v0.1.15" |