Skip to content

Commit

Permalink
Merge branch 'master' into release/1.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tmelliott authored Nov 4, 2021
2 parents f3aafcd + d7a3b70 commit 4117a73
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 7 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Releases

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
with:
r-version: latest
- name: create_body
run: |
news <- readLines('NEWS.Md')
i <- grep("^#{1,2}", news)[1:2]
if (is.na(i[2])) i[2L] <- length(news) + 1L
news <- news[(i[1L] + 1L):(i[2L] - 1L)]
news <- news[trimws(news) != ""]
writeLines(news, "body.md")
shell: Rscript {0}
- uses: ncipollo/release-action@v1
with:
bodyFile: "body.md"
token: ${{ secrets.GITHUB_TOKEN }}
68 changes: 68 additions & 0 deletions .github/workflows/revdep-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
on:
push:
branches:
- master

name: Check reverse dependencies

jobs:
revdep:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- { os: macos-latest, r: "release" }

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.config.r }}

- 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)
shell: Rscript {0}

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

- name: Cache revdep packages
uses: actions/cache@v1
with:
path: "revdep"
key: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-1-revdep-${{ hashFiles('revdep/checks/libraries.csv') }}
restore-keys: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-1-revdep-

- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_github('r-lib/revdepcheck')
shell: Rscript {0}

- name: Revdepcheck
run: |
options(repos = "https://cloud.r-project.org")
revdepcheck::revdep_reset()
revdepcheck::revdep_check(num_workers = 4L)
revdepcheck::revdep_summary()
shell: Rscript {0}

# - name: Upload check results
# uses: actions/upload-artifact@v2
# with:
# name: ${{ runner.os }}-r${{ matrix.config.r }}-revdepresults
# path: revdep/
2 changes: 2 additions & 0 deletions CRAN-RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This package was submitted to CRAN on 2021-09-17.
Once it is accepted, delete this file and tag the release (commit 52e8386).
12 changes: 5 additions & 7 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
This patch fixes issues in tests exposed by M1 mac causing `R CMD check` failure.
Asked to fix by CRAN before 2021-07-18.

## Test environments
* ubuntu 21.04 (local), R 4.1.0
* ubuntu 20.04 (github actions), R release and devel
* macos (github actions), R release
* windows (win-builder), R release and devel

- ubuntu 21.04 (local), R 4.1.0
- ubuntu 20.04 (github actions), R release and devel
- macos (github actions), R release
- windows (win-builder), R release and devel

## R CMD check results

Expand Down

0 comments on commit 4117a73

Please sign in to comment.