Skip to content
Merged
Changes from all commits
Commits
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
14 changes: 5 additions & 9 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ name: test-coverage
# Increment this version when we want to clear cache
env:
cache-version: v1
r-version: 4.0

jobs:
test-coverage:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
with:
r-version: ${{ env.r-version }}

- uses: r-lib/actions/setup-r@master

Expand All @@ -32,8 +35,8 @@ jobs:
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ env.cache-version }}-macOS-r-3.6-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ env.cache-version }}-macOS-r-3.6-
key: ${{ env.cache-version }}-macOS-r-${{ env.r-version }}-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ env.cache-version }}-macOS-r-${{ env.r-version }}-

- name: Install system dependencies on macOS
if: runner.os == 'macOS'
Expand All @@ -53,13 +56,6 @@ jobs:
brew install udunits gdal
fi

# TODO: Remove this when https://github.com/r-lib/xml2/issues/296 is fixed on CRAN
- name: Install the dev version of xml2 as a workaround
if: runner.os == 'macOS' && matrix.config.r == 'devel'
run: |
remotes::install_github('r-lib/xml2')
shell: Rscript {0}

- name: Install dependencies
run: |
install.packages(c("remotes"))
Expand Down