Skip to content

Commit

Permalink
fix for windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
sterrettJD committed Feb 11, 2025
1 parent 6c0c0f3 commit d7d12e3
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/r.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: R

on:
Expand All @@ -20,17 +19,18 @@ jobs:

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: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev
fi
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
Expand All @@ -40,16 +40,27 @@ jobs:

- name: Install Bioconductor BiocCheck
run: |
if (Sys.info()[['sysname']] == 'Windows') install.packages('Rtools')
install.packages("BiocManager")
BiocManager::install("BiocCheck")
shell: Rscript {0}

- name: lme4 from source
run: R -q -e 'install.packages(c("lme4"), type = "source")'
- 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:
Expand All @@ -60,4 +71,4 @@ jobs:

- name: Run BiocCheck
run: |
Rscript -e 'BiocCheck::BiocCheck(".")'
Rscript -e 'BiocCheck::BiocCheck(".")'

0 comments on commit d7d12e3

Please sign in to comment.