Skip to content

Commit

Permalink
update rcmd check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 23, 2021
1 parent 8e4ad35 commit d229226
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 33 deletions.
32 changes: 24 additions & 8 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

if: "!(contains(github.event.head_commit.message, 'ci skip')||contains(github.event.head_commit.message, 'skip ci'))"
steps:
Expand All @@ -38,29 +39,32 @@ jobs:
- uses: r-lib/actions/setup-r@master
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}

- uses: r-lib/actions/setup-pandoc@v1

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.config.r }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-1-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
Rscript -e "remotes::install_github('r-hub/sysreqs')"
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
sudo -s eval "$sysreqs"
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "18.04"))')
- name: Install dependencies
run: |
Expand All @@ -85,3 +89,15 @@ jobs:
if: always()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check

- name: Don't use tar from old Rtools to store the cache
if: ${{ runner.os == 'Windows' && startsWith(steps.install-r.outputs.installed-r-version, '3.6' ) }}
shell: bash
run: echo "C:/Program Files/Git/usr/bin" >> $GITHUB_PATH
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: osmdata
Title: Import 'OpenStreetMap' Data as Simple Features or Spatial Objects
Version: 0.1.6.004
Version: 0.1.6.005
Authors@R:
c(person(given = "Mark",
family = "Padgham",
Expand Down
29 changes: 5 additions & 24 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"codeRepository": "https://github.com/ropensci/osmdata/",
"issueTracker": "https://github.com/ropensci/osmdata/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.6.004",
"version": "0.1.6.5",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -327,28 +327,12 @@
],
"applicationCategory": "DataAccess",
"isPartOf": "https://ropensci.org",
"keywords": [
"open0street0map",
"openstreetmap",
"overpass0API",
"OSM",
"overpass-api",
"r",
"cpp",
"rstats",
"osm",
"osm-data",
"r-package",
"peer-reviewed"
],
"contIntegration": [
"https://github.com/ropensci/osmdata/actions?query=workflow%3AR-CMD-check",
"https://codecov.io/gh/ropensci/osmdata"
],
"keywords": ["open0street0map", "openstreetmap", "overpass0API", "OSM", "overpass-api", "r", "cpp", "rstats", "osm", "osm-data", "r-package", "peer-reviewed"],
"contIntegration": ["https://github.com/ropensci/osmdata/actions?query=workflow%3AR-CMD-check", "https://codecov.io/gh/ropensci/osmdata"],
"developmentStatus": "https://www.repostatus.org/#active",
"releaseNotes": "https://github.com/ropensci/osmdata/blob/master/NEWS.md",
"readme": "https://github.com/ropensci/osmdata/blob/main/README.md",
"fileSize": "7736.975KB",
"fileSize": "7737.146KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down Expand Up @@ -385,10 +369,7 @@
"issueNumber": "14",
"datePublished": "2017",
"isPartOf": {
"@type": [
"PublicationVolume",
"Periodical"
],
"@type": ["PublicationVolume", "Periodical"],
"volumeNumber": "2",
"name": "The Journal of Open Source Software"
}
Expand Down

0 comments on commit d229226

Please sign in to comment.