Fix/learner formula #214
Workflow file for this run
This file contains hidden or 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
# runs r cmd check + unit tests in inst/tinytest | |
name: r-cmd-check | |
on: | |
pull_request: | |
branches: [main, dev] | |
# types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
r-cmd-check: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: ubuntu-latest, r: 'release'} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-tinytex@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
http-user-agent: ${{ matrix.config.http-user-agent }} | |
use-public-rspm: true | |
- name: Install dependencies | |
run: | | |
sudo apt-get install -y pandoc libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev libpoppler-cpp-dev | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | | |
any::rcmdcheck | |
any::remotes | |
any::covr | |
any::pkgdown | |
needs: check | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
upload-snapshots: true | |
# args: 'c("--ignore-vignettes")' | |
# build_args: 'c("--no-build-vignettes")' | |
- name: slow tests | |
if: success() && contains('refs/heads/main', github.ref) | |
run: | | |
Rscript -e 'remotes::install_github("kkholst/targeted")' | |
make slowtest | |
- name: Webpage deployment | |
if: success() && contains('refs/heads/main', github.ref) | |
run: | | |
Rscript -e 'remotes::install_github("kkholst/targeted")' | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "[email protected]" | |
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' | |
- name: Code Coverage | |
if: success() && contains('refs/heads/main', github.ref) | |
run: covr::codecov(type=c("tests", "examples")) | |
shell: Rscript {0} |