fix for windows test #77
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: R | |
on: | |
push: | |
branches: [ "testing-actions" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
r-version: ['4.3.3'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up R ${{ matrix.r-version }} | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.r-version }} | |
- name: Install system dependencies | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev | |
shell: bash | |
- name: Install dependencies | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
use-public-rspm: true | |
extra-packages: any::rcmdcheck, any::remotes, any::pandoc, any::gh | |
- name: Install Bioconductor BiocCheck | |
run: | | |
if (Sys.info()[['sysname']] == 'Windows') install.packages('Rtools') | |
install.packages("BiocManager") | |
BiocManager::install("BiocCheck") | |
shell: Rscript {0} | |
- name: Install lme4 | |
run: | | |
if (Sys.info()[['sysname']] == 'Windows') { | |
install.packages("lme4", type = "binary") | |
} else { | |
install.packages("lme4", type = "source") | |
} | |
shell: Rscript {0} | |
- name: Install pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Normalize line endings | |
run: | | |
git config --global core.autocrlf false | |
- name: Tests | |
uses: r-lib/actions/check-r-package@v2 | |
with: | |
upload-snapshots: true | |
error-on: '"error"' | |
build_args: '"--no-build-vignettes"' | |
args: 'c("--no-manual", "--as-cran", "--no-vignettes")' | |
- name: Run BiocCheck | |
run: | | |
Rscript -e 'BiocCheck::BiocCheck(".")' |