Skip to content

CRAN submission

CRAN submission #78

Workflow file for this run

# Run CI for R using https://eddelbuettel.github.io/r-ci/
name: ci
on:
push:
pull_request:
env:
USE_BSPM: "true"
_R_CHECK_FORCE_SUGGESTS_: "false"
jobs:
ci:
strategy:
matrix:
include:
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-latest}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: windows-latest}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v1
- uses: codecov/codecov-action@v2
- if: runner.os == 'macOS'
run: brew install --cask xquartz
- name: Bootstrap
run: |
curl -OLs https://eddelbuettel.github.io/r-ci/run.sh
chmod 0755 run.sh
./run.sh bootstrap
- name: Dependencies
run: ./run.sh install_all
- name: Test
run: ./run.sh run_tests
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set up R
uses: r-lib/actions/setup-r@v2
- name: Install Dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libglu1-mesa-dev freeglut3-dev mesa-common-dev xvfb
- name: Install OpenGL for macOS
if: runner.os == 'macOS'
run: |
# Install XQuartz for OpenGL support on macOS
brew install --cask xquartz
brew install pkg-config
brew install glfw
- name: Run tests
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
xvfb-run Rscript -e "devtools::check()"
else
Rscript -e "devtools::check()"
fi