Skip to content

Commit

Permalink
revise githubactions
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-plutniak committed Jul 7, 2024
1 parent 7445631 commit 6343db3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,45 +37,45 @@ jobs:
with:
r-version: ${{ matrix.r-version }}
- name: Install Dependencies (Windows)
run: choco install pandoc
if: matrix.config.os == 'windows-latest'
run: choco install pandoc texlive
- name: Install Dependencies (Linux)
run: sudo apt-get install pandoc libcurl4-openssl-dev libudunits2-dev libgdal-dev
if: matrix.config.os == 'ubuntu-24.04'
run: sudo apt-get install pandoc libcurl4-openssl-dev libudunits2-dev libgdal-dev texlive-latex-base
- name: Install Dependencies (macOS)
run: brew install pandoc udunits gdal
if: matrix.config.os == 'macOS-latest'
run: brew install pandoc udunits gdal
- name: Install R dependencies (macOs)
if: matrix.config.os == 'macOS-latest'
run: |
install.packages(c("remotes", "rcmdcheck", "plotly", "SEAHORS"))
remotes::install_deps(dependencies = TRUE)
if: matrix.config.os == 'macOS-latest'
shell: Rscript {0}
- name: Install R dependencies (windows, R '4.4.1')
if: ${{ (matrix.config.os == 'windows-latest') && (matrix.r-version == '4.4.1') }}
run: |
install.packages(c("rlang", "remotes", "rcmdcheck", "sf", "Morpho", "stringi", "rgl"), INSTALL_opts = c("--no-multiarch"))
install.packages(c("xfun", "stringi"), type="binary", INSTALL_opts = c("--no-multiarch"))
remotes::install_github("dmurdoch/rgl", INSTALL_opts = c("--no-multiarch"))
remotes::install_deps(dependencies = TRUE, INSTALL_opts = c("--no-multiarch"))
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
if: ${{ (matrix.config.os == 'windows-latest') && (matrix.r-version == '4.4.1') }}
shell: Rscript {0}
- name: Install R dependencies (windows, R '3.6.3')
if: ${{ (matrix.config.os == 'windows-latest') && (matrix.r-version == '3.6.3') }}
run: |
install.packages(c("remotes", "rcmdcheck", "sf", "purrr", "Morpho", "plyr", "tidyr", "plotly", "testthat", "shiny", "cxhull"), INSTALL_opts = c("--no-multiarch"))
install.packages(c("rlang", "Rcpp", "htmltools", "digest", "cxhull"), type="binary", INSTALL_opts = c("--no-multiarch"))
remotes::install_github("dmurdoch/rgl")
remotes::install_deps(dependencies = TRUE)
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
if: ${{ (matrix.config.os == 'windows-latest') && (matrix.r-version == '3.6.3') }}
shell: Rscript {0}
- name: Install R dependencies (Ubuntu)
if: matrix.config.os == 'ubuntu-24.04'
run: |
install.packages(c("remotes", "curl", "pkgbuild", "rcmdcheck", "purrr", "sf", "Morpho", "cxhull", "Rvcg", "SEAHORS", "svglite", "knitr"))
remotes::install_deps(dependencies = TRUE)
if: matrix.config.os == 'ubuntu-24.04'
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
Expand All @@ -87,6 +87,7 @@ jobs:
with:
extra-packages: covr
- name: Test coverage
if: ${{ (failure()) && ( matrix.config.os == 'ubuntu-24.04' ) }}
run: covr::codecov(
quiet = FALSE,
clean = FALSE,
Expand Down

0 comments on commit 6343db3

Please sign in to comment.