Skip to content

Commit

Permalink
Merge pull request #51 from carpentries-incubator/33-setup-r44-cf
Browse files Browse the repository at this point in the history
Update workflow with R version 4.4.0
  • Loading branch information
cforgaci authored May 17, 2024
2 parents f35aa82 + 07b6d2b commit 55f94da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sandpaper-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.16.2
0.16.4
16 changes: 8 additions & 8 deletions .github/workflows/workshop-setup.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# A workflow for testing the workshop setup in different operating systems

name: Test Workshop Setup
name: Test Workshop Setup

# Controls when the action will run. Workflow runs when manually triggered using the UI
on:
workflow_dispatch:

jobs:
workshop_setup:
runs-on: ${{matrix.os}}
strategy:
matrix:
# list of Os's
R: ['4.3.3']
R: ['4.4.0']
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{matrix.R}}
rtools-version: '43'
rtools-version: '44'
- run: Rscript -e 'print("R was installed successfully")'
- name: Install GDAL, GEOS, and PROJ.4 (macOS)
if: matrix.os == 'macos-latest'
run: |
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew tap osgeo/osgeo4mac && brew tap --repair
Expand All @@ -34,7 +34,7 @@ jobs:
shell: bash
- name: Install GDAL, GEOS, and PROJ.4 (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
run: |
sudo add-apt-repository ppa:ubuntugis -y
sudo apt-get update
sudo apt-get install libgdal-dev libgeos-dev libproj-dev -y
Expand All @@ -50,10 +50,10 @@ jobs:
with:
cache-version: 2
packages: |
any::sessioninfo
any::sessioninfo
any::tidyverse
any::terra
any::sf
- name: Test Lessons
run: |
run: |
Rscript -e 'nc <- sf::st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE); if (sf::st_crs(sf::st_transform(nc, 4326))$epsg == 4326) print("`sf` works as expected"); if (nrow(dplyr::filter(nc, AREA > 0.2)) == 11) print("`tidyverse` works as expected")'

0 comments on commit 55f94da

Please sign in to comment.