Skip to content

Commit

Permalink
Merge branch 'main' into coro_example
Browse files Browse the repository at this point in the history
* main:
  Fix Content-Length header on HTTP responses which forbid it (#760)
  Generate docs and fix existing tests (#860)
  decode static URI before serving (#754)
  Update feather serializer; Add parquet serializer (#849)
  remove author in pkgdown; have website build again
  Fix plumber website. Use tidytemplate (#851)
  Runtime Vignette typo (#848)
  GHA v2 (#842)
  master -> main (#839)
  Create GeoJSON serializer and parser (#830)
  Add details about named functions as router modifiers (#824)
  Parser params should be in a `list()` (#827)
  Test on ubuntu 18/20 and use relative R versions (#828)
  Shared secret rejections are not errors (#809)
  Fix tag endpoint block annotation spelling to `@tag` (#800)
  Add ORCID info (#794)
  Add blog post link to website (#792)
  Use serializer Content-Type header for PlumberEndpoint API spec (#789)
  Use dev version (#790)
  v1.1.0 (#752)
  • Loading branch information
schloerke committed Jun 2, 2022
2 parents 4f4592a + 48fb0df commit d8b0991
Show file tree
Hide file tree
Showing 64 changed files with 1,011 additions and 843 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
rsconnect
^CRAN-RELEASE$
^legacy_support.txt$
^codecov\.yml$
130 changes: 13 additions & 117 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,125 +1,21 @@
# Workflow derived from https://github.com/rstudio/shiny-workflows
#
# NOTE: This Shiny team GHA workflow is overkill for most R packages.
# For most R packages it is better to use https://github.com/r-lib/actions
on:
push:
branches:
- master
branches: [main, rc-**]
pull_request:
branches:
- master
branches: [main]
schedule:
- cron: '0 0 1,11,21 * *' # every 10 days (GHA cache invalidates after 7)
- cron: '0 7 * * 1' # every monday

name: R-CMD-check
name: Package checks

jobs:
website:
uses: rstudio/shiny-workflows/.github/workflows/website.yaml@v1
routine:
uses: rstudio/shiny-workflows/.github/workflows/routine.yaml@v1
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'devel'}
- {os: macOS-latest, r: 'release'}
- {os: macOS-latest, r: 'oldrel'}

- {os: windows-latest, r: 'devel'}
- {os: windows-latest, r: 'release'}
# - {os: windows-latest, r: 'oldrel'} # do not test due to binaries not being created

# check a lot of ubuntu combinations as that's where plumber is hosted
- {os: ubuntu-18.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}

# would use RSPM for ubuntu 16, but sodium has issues finding libsodium
- {os: ubuntu-16.04, r: 'release'}
- {os: ubuntu-16.04, r: 'oldrel'}
- {os: ubuntu-16.04, r: '3.5'}
- {os: ubuntu-16.04, r: '3.4'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'

- uses: r-lib/actions/setup-r@master
id: install-r
with:
r-version: ${{ matrix.config.r }}

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

- name: Install pak and query dependencies
shell: Rscript {0}
run: |
install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/")
saveRDS(pak::pkg_deps_tree("local::.", dependencies = TRUE), ".github/r-depends.rds")
- name: Cache R packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ matrix.config.os }}-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }}
restore-keys: ${{ matrix.config.os }}-${{ steps.install-r.outputs.installed-r-version }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
shell: Rscript {0}
run: |
pak::local_system_requirements(execute = TRUE)
# Install Cairo system dependencies
# used for svg testing
- name: Mac systemdeps
if: runner.os == 'macOS'
run: |
brew install --cask xquartz
brew install cairo
- name: macOS oldrel Rcpp
if: runner.os == 'macOS' && matrix.config.r == 'oldrel'
shell: Rscript {0}
run: |
install.packages("Rcpp", type = "source")
- name: Install dependencies
shell: Rscript {0}
run: |
pak::local_install_dev_deps(upgrade = TRUE)
pak::pkg_install("rcmdcheck")
pak::pkg_install("sessioninfo")
- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}

- name: Check
env:
_R_CHECK_CRAN_INCOMING_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}

- name: Show testthat output
if: always()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload check results
if: failure()
uses: actions/upload-artifact@master
with:
name: ${{ matrix.config.os }}-r${{ matrix.config.r }}-results
path: check
uses: rstudio/shiny-workflows/.github/workflows/R-CMD-check.yaml@v1
7 changes: 4 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Docker
on:
push:
branches:
- "master"
- "main"
- "rc-v**"
- "docker**"
schedule:
- cron: '0 0 1 * *' # first of every month
Expand Down Expand Up @@ -36,11 +37,11 @@ jobs:
- name: GitHub
# 'next' tag signifies the _next_ release
tags: "next"
ref: "master"
ref: "main"


steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2

# https://github.com/marketplace/actions/publish-docker
- name: rstudio/plumber
Expand Down
83 changes: 0 additions & 83 deletions .github/workflows/pkgdown.yaml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/pr-commands.yaml

This file was deleted.

61 changes: 0 additions & 61 deletions .github/workflows/test-coverage.yaml

This file was deleted.

Loading

0 comments on commit d8b0991

Please sign in to comment.