Skip to content

Commit

Permalink
add cran check ci in release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ygeunkim committed Sep 16, 2024
1 parent 7c4df10 commit 782f281
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,27 @@ jobs:

# do not build vignettes in github actions check and ignore warnings
- uses: r-lib/actions/check-r-package@v2
if: "!startsWith(github.ref, 'refs/heads/release/')"
with:
args: 'c("--no-manual", "--as-cran", "--no-vignettes", "--no-build-vignettes", "--ignore-vignettes", "--no-examples")'
build_args: 'c("--no-manual", "--no-build-vignettes")'
error-on: '"warning"'
check-dir: '"check"'
upload-snapshots: false
upload-results: false

- name: Run check for CRAN
uses: r-lib/actions/check-r-package@v2
if: startsWith(github.ref, 'refs/heads/release/')
with:
args: 'c("--as-cran")'
error-on: '"warning"'
check-dir: '"check"'
upload-snapshots: false
upload-results: false
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: true
_R_CHECK_CRAN_INCOMING_: true

# do not upload artifact until changing to public repo
# When public repo -> uncomment below
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master, develop]
branches: [main, master, develop, release/*]
pull_request:
branches: [main, master]
workflow_dispatch:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && "!startsWith(github.ref, 'refs/heads/release/')"
uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
token: ${{ secrets.YGEUNKIM_PAGE_PAT }}
Expand Down
18 changes: 17 additions & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
## Minor version update

In this version, we

- Add some features
- Deprecate some functions in preparation for removal in the next version.

## Test environments

- Local: macOS 14.6.1 (x86_64-apple-darwin20), R 4.3.3
- Github actions
- ubuntu-latest: R-devel, R-release, R-oldrel-1, R-oldrel-2, R-oldrel-3, R-oldrel-4, R 3.6
- macOS-latest: R-release
- windows-latest: R-release, R-oldrel-4
- win-builder: devel

## R CMD check results

0 errors | 0 warnings | 1 note

* HTML validation: It seems inevitable NOTE in local machine (aarch64-apple-darwin20) check. I got the same one last time but had no problem in CRAN check.
* NOTE in local machine: HTML validation NOTE on local environment (aarch64-apple-darwin20) check. This note appears to be specific to my local machine and had no problem in previous CRAN checks.

## revdepcheck results

Expand Down

0 comments on commit 782f281

Please sign in to comment.