From ad49cb8c963d77267b0f929183c010b6a43fd9f1 Mon Sep 17 00:00:00 2001 From: Sabuj Chandra Bhowmick Date: Wed, 10 Jun 2026 15:13:42 +0300 Subject: [PATCH 1/3] Add GitHub Actions workflow for R builds work setup update --- .github/workflows/r.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/r.yml diff --git a/.github/workflows/r.yml b/.github/workflows/r.yml new file mode 100644 index 000000000..b057ff5a8 --- /dev/null +++ b/.github/workflows/r.yml @@ -0,0 +1,40 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# +# See https://github.com/r-lib/actions/tree/master/examples#readme for +# additional example workflows available for the R community. + +name: R + +on: + push: + branches: [ "devel" ] + pull_request: + branches: [ "devel" ] + +permissions: + contents: read + +jobs: + build: + runs-on: macos-latest + strategy: + matrix: + r-version: ['3.6.3', '4.1.1'] + + steps: + - uses: actions/checkout@v4 + - name: Set up R ${{ matrix.r-version }} + uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: | + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0} From f422b1974ab2c6bfe4e222d13876065a0722588d Mon Sep 17 00:00:00 2001 From: Sabuj Chandra Bhowmick Date: Wed, 22 Jul 2026 12:00:58 +0300 Subject: [PATCH 2/3] Remove redundant R workflow --- .github/workflows/r.yml | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 .github/workflows/r.yml diff --git a/.github/workflows/r.yml b/.github/workflows/r.yml deleted file mode 100644 index b057ff5a8..000000000 --- a/.github/workflows/r.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# -# See https://github.com/r-lib/actions/tree/master/examples#readme for -# additional example workflows available for the R community. - -name: R - -on: - push: - branches: [ "devel" ] - pull_request: - branches: [ "devel" ] - -permissions: - contents: read - -jobs: - build: - runs-on: macos-latest - strategy: - matrix: - r-version: ['3.6.3', '4.1.1'] - - steps: - - uses: actions/checkout@v4 - - name: Set up R ${{ matrix.r-version }} - uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a - with: - r-version: ${{ matrix.r-version }} - - name: Install dependencies - run: | - install.packages(c("remotes", "rcmdcheck")) - remotes::install_deps(dependencies = TRUE) - shell: Rscript {0} - - name: Check - run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") - shell: Rscript {0} From 2a020a43f0a81be881305f3bb0d122dc5de7aa03 Mon Sep 17 00:00:00 2001 From: Sabuj Chandra Bhowmick Date: Mon, 27 Jul 2026 11:50:18 +0300 Subject: [PATCH 3/3] Modify run_pkgdown to trigger on push events Change run_pkgdown condition to only run on push events. --- .github/workflows/rworkflows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rworkflows.yml b/.github/workflows/rworkflows.yml index e58097185..1ff150abf 100644 --- a/.github/workflows/rworkflows.yml +++ b/.github/workflows/rworkflows.yml @@ -46,7 +46,7 @@ jobs: run_vignettes: ${{ true }} has_testthat: ${{ true }} run_covr: ${{ true }} - run_pkgdown: ${{ true }} + run_pkgdown: ${{ github.event_name == 'push' }} has_runit: ${{ false }} has_latex: ${{ false }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -54,4 +54,4 @@ jobs: DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} runner_os: ${{ runner.os }} cache_version: cache-v1 - docker_registry: ghcr.io \ No newline at end of file + docker_registry: ghcr.io