Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report CRAN incoming results #5

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
73d0f31
report CRAN incoming results
cjyetman Dec 16, 2024
898c837
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
31102e7
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
46ed2ee
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
d143e71
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
28d9858
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
9358641
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
1e5a5a3
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
5010926
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
676cea3
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
6f63417
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
3aefa8d
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
6496c2f
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
855db94
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
f42ef0d
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
63a6948
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
4c19c9f
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
442dbf4
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
f2f0bb5
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
4bdd788
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
893fe85
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
2c3db6c
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
fa1757f
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
a567b82
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
1fbc4bf
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
c9fec66
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
4a1e7f8
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
4e34ca4
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
736ee04
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
6851091
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
05b0ba1
Update R-CMD-check-CRAN-incoming.yml
cjyetman Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 45 additions & 14 deletions .github/workflows/R-CMD-check-CRAN-incoming.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ on:
branches: [main, master]
pull_request:
branches: [main, master]
schedule:
- cron: '0 5 * * 1'

name: R-CMD-check-CRAN-incoming.yaml

permissions: read-all
permissions:
pull-requests: write

jobs:
R-CMD-check:
Expand All @@ -22,9 +21,7 @@ jobs:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'devel'}
- {os: windows-latest, r: 'devel'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -43,7 +40,7 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
extra-packages: any::rcmdcheck, any::crayon
needs: check

- name: Install aspell on Windows
Expand All @@ -61,12 +58,46 @@ jobs:
run: |
brew install aspell

- uses: r-lib/actions/check-r-package@v2
- name: R CMD check CRAN incoming feasibilty
id: rcmdcheck
run: |
cat("::group::Run R CMD check with CRAN incoming env vars\n")
options(crayon.enabled = TRUE)
cat("LOGNAME=", Sys.info()[["user"]], "\n", sep = "", file = Sys.getenv("GITHUB_ENV"), append = TRUE)
Sys.setenv("_R_CHECK_FORCE_SUGGESTS_" = "false")
Sys.setenv("_R_CHECK_CRAN_INCOMING_" = "true")
Sys.setenv("_R_CHECK_CRAN_INCOMING_REMOTE_" = "true")
Sys.setenv("_R_CHECK_CRAN_INCOMING_USE_ASPELL_" = "true")
cat("check-dir-path=", file.path(getwd(), "check"), "\n", file = Sys.getenv("GITHUB_OUTPUT"), sep = "", append = TRUE)
check_results <- rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), build_args = c("--no-manual", "--compact-vignettes=gs+qpdf"), error_on = "warning", check_dir = "check")
writeLines(paste0("```\n", check_results$stdout, "\n```"), Sys.getenv("GITHUB_STEP_SUMMARY"))
notes <- unlist(strsplit(check_results$notes, "\\n"))
notes <- grep("^checking CRAN incoming feasibility|^Maintainer: |^New submission$|^$", notes, value = TRUE, invert = TRUE)
writeLines(paste0("R CMD check CRAN incoming feasibility check notes found:\n```\n", notes, "\n```"), "notes.md")
if (length(notes) > 0L) cat("::error::Notes found in CRAN incoming feasibility check\n"); cat(paste(notes, collapse = "\n")); quit(status=1)
shell: Rscript {0}

- name: Upload 00check.log
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ format('{0}-{1}-r{2}-{3}-00check.log', runner.os, runner.arch, matrix.config.r, matrix.config.id || strategy.job-index ) }}
path: ${{ steps.rcmdcheck.outputs.check-dir-path }}/*.Rcheck/00check.log
if-no-files-found: ignore

- name: Find Comment
if: failure()
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'

- name: Create or update comment
if: failure()
uses: peter-evans/create-or-update-comment@v4
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
error-on: '"note"'
env:
_R_CHECK_CRAN_INCOMING_: true
_R_CHECK_CRAN_INCOMING_REMOTE_: true
_R_CHECK_CRAN_INCOMING_USE_ASPELL_: true
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body-path: "notes.md"
edit-mode: replace
Loading