Skip to content

Commit

Permalink
GA: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Jul 29, 2024
1 parent 3f308c3 commit c31da2c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
R-CMD-check:
if: "! contains(github.event.head_commit.message, '[ci skip]')"

timeout-minutes: 10
timeout-minutes: 45

runs-on: ${{ matrix.config.os }}

Expand All @@ -20,16 +20,16 @@ jobs:
- {os: windows-latest, r: 'release' }
# - {os: macOS-latest, r: 'devel' }
- {os: macOS-latest, r: 'release' }
- {os: ubuntu-latest, r: 'devel' }
- {os: ubuntu-latest, r: 'release' }
- {os: ubuntu-latest, r: 'oldrel' }
- {os: ubuntu-latest, r: 'oldrel-1' }
- {os: ubuntu-latest, r: 'oldrel-2' }
- {os: ubuntu-latest, r: '3.6' }
- {os: ubuntu-latest, r: 'release' , language: ko, label: ko }
- {os: ubuntu-latest, r: 'release' , language: zh_CN, label: zh_CN }
- {os: ubuntu-latest, r: 'release' , language: zh_TW, label: zh_TW }

- {os: ubuntu-22.04, r: 'devel' }
- {os: ubuntu-22.04, r: 'release' }
- {os: ubuntu-22.04, r: 'oldrel' }
- {os: ubuntu-22.04, r: 'oldrel-1' }
- {os: ubuntu-22.04, r: 'oldrel-2' }
- {os: ubuntu-22.04, r: '3.6' }
- {os: ubuntu-22.04, r: 'release' , language: ko, label: ko }
- {os: ubuntu-22.04, r: 'release' , language: zh_CN, label: zh_CN }
- {os: ubuntu-22.04, r: 'release' , language: zh_TW, label: zh_TW }
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RSPM: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
Expand All @@ -40,9 +40,11 @@ jobs:
_R_CHECK_LENGTH_1_LOGIC2_: true
_R_CHECK_MATRIX_DATA_: true
_R_CHECK_SUGGESTS_ONLY_: true
_R_CHECK_THINGS_IN_TEMP_DIR_: true
RCMDCHECK_ERROR_ON: note
## Test in other locale (optional)
LANGUAGE: ${{ matrix.config.language }}

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -93,20 +95,12 @@ jobs:
run: |
options(width = 100)
capabilities()
utils::str(list(
"startup::sysinfo()" = startup::sysinfo()
))
utils::str(list(
R.version = R.version,
.Platform = .Platform,
Sys.info = as.list(Sys.info())
))
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}

- name: Check
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", if (.Platform$OS.type == "windows" && getRversion() >= "4.2.0") "--no-multiarch"), error_on = "warning", check_dir = "check")
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran", if (.Platform$OS.type == "windows" && getRversion() >= "4.2.0") "--no-multiarch"), check_dir = "check")
shell: Rscript {0}

- name: Upload check results
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/covr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
covr:
if: "! contains(github.event.head_commit.message, '[ci skip]')"

timeout-minutes: 10
timeout-minutes: 30

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

name: covr

Expand Down

0 comments on commit c31da2c

Please sign in to comment.