generated from carpentries/workbench-template-rmd
-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup test workflow for various OSs #40
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
f6c39f4
Create setup.yml
manuGil 929f551
Update setup.yml
manuGil 97cdd11
Update setup.yml
manuGil 0fc586a
Update setup.yml
manuGil 65a6bc3
Update setup.yml
manuGil 8e46e14
Update setup.yml
manuGil 1aa1ee0
Update and rename setup.yml to workshop-setup.yml
manuGil a7adb7e
Update workshop-setup.yml
manuGil dfbeafd
include specific fersion of rtools
manuGil 1a9f970
Update workshop-setup.yml
manuGil 183a832
Update workshop-setup.yml
manuGil 3dc7863
Update workshop-setup.yml
manuGil dc9100a
Update workshop-setup.yml
manuGil ebc8dbb
Update workshop-setup.yml
manuGil 534848d
add R dependencies to workshop-setup.yml
manuGil 13e2ba5
Update workshop-setup.yml
manuGil 207b6ea
Update workshop-setup.yml
manuGil 229dd16
Update workshop-setup.yml
manuGil 66a8a6e
Update workshop-setup.yml
manuGil 9c59bbe
update syntax of workflow
manuGil 8605712
exclude sf package
manuGil 4d31c9e
Update workshop-setup.yml
manuGil d574f3c
Update geospatial package in workshop setup workflow
manuGil 3dcd734
Add testpackage DESCRIPTION file
manuGil be9d15e
Add new R packages for workshop setup
manuGil 31812b5
Delete DESCRIPTION file
manuGil 84d7f68
Update package name in workshop-setup.yml
manuGil a2732bb
Update workshop-setup.yml
manuGil 05bcd00
windows only
manuGil 4a13406
Merge branch 'main' of github.com:manuGil/r-geospatial-urban
manuGil 682d14d
correct version in rtools-version option
manuGil 8a08471
include ubuntu and macos in workflow
manuGil 55e91e5
include brew update command to fix error with brew link
manuGil 6678144
change name of steps for macos and ubuntu
manuGil c441107
Update .github/workflows/workshop-setup.yml
manuGil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# A workflow for testing the workshop setup in different operating systems | ||
|
||
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'] | ||
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' | ||
- run: Rscript -e 'print("R was installed successfully")' | ||
- name: Install GDAL, GEOS, and PROJ.4 (macOS) | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
brew update | ||
brew tap osgeo/osgeo4mac && brew tap --repair | ||
brew install proj | ||
brew install geos | ||
brew install gdal | ||
shell: bash | ||
- name: Install GDAL, GEOS, and PROJ.4 (Ubuntu) | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo add-apt-repository ppa:ubuntugis -y | ||
sudo apt-get update | ||
sudo apt-get install libgdal-dev libgeos-dev libproj-dev -y | ||
shell: bash | ||
# Include Fedora and Arch? | ||
- name: UDUNITS | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get install libudunits2-dev -y | ||
shell: bash | ||
- name: Geospatial Packages | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
cache-version: 2 | ||
packages: | | ||
any::sessioninfo | ||
any::tidyverse | ||
any::terra | ||
any::sf | ||
- name: Test Lessons | ||
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")' |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I would add those too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I will add those in the next revision. I opened this issue #45 for that. For now, I suggest we complete the merge for the current tests.