Skip to content
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 35 commits into from
May 2, 2024
Merged
Changes from 34 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f6c39f4
Create setup.yml
manuGil Mar 18, 2024
929f551
Update setup.yml
manuGil Mar 18, 2024
97cdd11
Update setup.yml
manuGil Mar 18, 2024
0fc586a
Update setup.yml
manuGil Mar 18, 2024
65a6bc3
Update setup.yml
manuGil Mar 18, 2024
8e46e14
Update setup.yml
manuGil Mar 18, 2024
1aa1ee0
Update and rename setup.yml to workshop-setup.yml
manuGil Mar 18, 2024
a7adb7e
Update workshop-setup.yml
manuGil Mar 18, 2024
dfbeafd
include specific fersion of rtools
manuGil Mar 18, 2024
1a9f970
Update workshop-setup.yml
manuGil Mar 18, 2024
183a832
Update workshop-setup.yml
manuGil Mar 18, 2024
3dc7863
Update workshop-setup.yml
manuGil Mar 18, 2024
dc9100a
Update workshop-setup.yml
manuGil Mar 18, 2024
ebc8dbb
Update workshop-setup.yml
manuGil Mar 18, 2024
534848d
add R dependencies to workshop-setup.yml
manuGil Mar 18, 2024
13e2ba5
Update workshop-setup.yml
manuGil Mar 18, 2024
207b6ea
Update workshop-setup.yml
manuGil Mar 18, 2024
229dd16
Update workshop-setup.yml
manuGil Mar 18, 2024
66a8a6e
Update workshop-setup.yml
manuGil Mar 18, 2024
9c59bbe
update syntax of workflow
manuGil Mar 18, 2024
8605712
exclude sf package
manuGil Mar 18, 2024
4d31c9e
Update workshop-setup.yml
manuGil Mar 18, 2024
d574f3c
Update geospatial package in workshop setup workflow
manuGil Mar 18, 2024
3dcd734
Add testpackage DESCRIPTION file
manuGil Mar 18, 2024
be9d15e
Add new R packages for workshop setup
manuGil Mar 18, 2024
31812b5
Delete DESCRIPTION file
manuGil Mar 18, 2024
84d7f68
Update package name in workshop-setup.yml
manuGil Mar 18, 2024
a2732bb
Update workshop-setup.yml
manuGil Mar 18, 2024
05bcd00
windows only
manuGil Mar 23, 2024
4a13406
Merge branch 'main' of github.com:manuGil/r-geospatial-urban
manuGil Mar 23, 2024
682d14d
correct version in rtools-version option
manuGil Mar 23, 2024
8a08471
include ubuntu and macos in workflow
manuGil Mar 23, 2024
55e91e5
include brew update command to fix error with brew link
manuGil Mar 23, 2024
6678144
change name of steps for macos and ubuntu
manuGil Mar 23, 2024
c441107
Update .github/workflows/workshop-setup.yml
manuGil May 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/workshop-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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?
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

- 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: |
echo "code to test lessons"
shell: bash
manuGil marked this conversation as resolved.
Show resolved Hide resolved
Loading