Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-plutniak committed Jul 6, 2024
1 parent 4bf431f commit 41bfbb9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
strategy:
fail-fast: false
matrix:
r-version: ['3.6.3', '4.1.1']
r-version: ['3.6.3', '4.4.1']
config:
#- {os: windows-latest, r: 'release', windows_32_or_64: '64'}
- {os: windows-latest, r: 'release', windows_32_or_64: '64'}
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-24.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
env:
RGL_USE_NULL: true
steps:
Expand All @@ -41,7 +41,7 @@ jobs:
if: matrix.config.os == 'windows-latest'
- name: Install Dependencies (Linux)
run: sudo apt-get install pandoc libcurl4-openssl-dev libudunits2-dev libgdal-dev
if: matrix.config.os == 'ubuntu-20.04'
if: matrix.config.os == 'ubuntu-24.04'
- name: Install Dependencies (macOS)
run: brew install pandoc udunits gdal
if: matrix.config.os == 'macOS-latest'
Expand All @@ -51,15 +51,15 @@ jobs:
remotes::install_deps(dependencies = TRUE)
if: matrix.config.os == 'macOS-latest'
shell: Rscript {0}
- name: Install R dependencies (windows, R '4.1.1')
- name: Install R dependencies (windows, R '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.1.1') }}
if: ${{ (matrix.config.os == 'windows-latest') && (matrix.r-version == '4.4.1') }}
shell: Rscript {0}
- name: Install R dependencies (windows, R '3.6.3')
run: |
Expand All @@ -75,7 +75,7 @@ jobs:
run: |
install.packages(c("remotes", "curl", "pkgbuild", "rcmdcheck", "purrr", "sf", "Morpho", "cxhull", "Rvcg", "SEAHORS"))
remotes::install_deps(dependencies = TRUE)
if: matrix.config.os == 'ubuntu-20.04'
if: matrix.config.os == 'ubuntu-24.04'
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
Expand All @@ -94,13 +94,13 @@ jobs:
)
shell: Rscript {0}
- name: Show testthat output
if: ${{ (always()) && ( matrix.config.os == 'ubuntu-20.04' ) }}
if: ${{ (always()) && ( matrix.config.os == 'ubuntu-24.04' ) }}
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/archeoViz -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
- name: Upload test results
if: ${{ (failure()) && ( matrix.config.os == 'ubuntu-20.04' ) }}
if: ${{ (failure()) && ( matrix.config.os == 'ubuntu-24.04' ) }}
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
Expand Down

0 comments on commit 41bfbb9

Please sign in to comment.