Skip to content

CRAN release 0.1.1: fix vignette missing gif #55

CRAN release 0.1.1: fix vignette missing gif

CRAN release 0.1.1: fix vignette missing gif #55

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: R_CMD_check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release'}
steps:
- uses: actions/checkout@v3
- name: Set up R ${{ matrix.r }}
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: Set up pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install HDF5 library on Linux
if: runner.os == 'Linux'
run: |
sudo apt-get install libhdf5-dev libglpk-dev libgl1-mesa-dev libglu1-mesa-dev libmagick++-dev
- name: Install XQuartz on macOS
if: runner.os == 'macOS'
run: brew install xquartz --cask
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck", "covr"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check
if: runner.os != 'Linux'
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning")
shell: Rscript {0}
- name: Check on Linux
if: runner.os == 'Linux'
run: |
export DISPLAY=:99
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
Rscript -e 'rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning")'
- name: Test coverage
if: runner.os != 'Windows'
run: |
Rscript -e 'covr::codecov(token = "${{ secrets.CODECOV_TOKEN }}")'
# # - name: Run codecov
# run: |
# covr::codecov(token = "")
# shell: Rscript {0}
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}