Skip to content

Commit e4e060e

Browse files
Copilotosorensen
andcommitted
Use official Debian CRAN Docker container for checks
Co-authored-by: osorensen <21175639+osorensen@users.noreply.github.com>
1 parent 8c0a1bf commit e4e060e

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ jobs:
2323
- {os: ubuntu-latest, r: 'release'}
2424
- {os: ubuntu-latest, r: 'oldrel-1'}
2525
- {os: windows-latest, r: 'release'}
26-
# CRAN-like checks on Debian (using ubuntu-latest with --as-cran)
27-
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release', as-cran: true}
2826

2927
env:
3028
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -50,4 +48,3 @@ jobs:
5048
with:
5149
upload-snapshots: true
5250
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
53-
args: ${{ matrix.config.as-cran && 'c("--as-cran")' || 'c()' }}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# CRAN Debian incoming checks
2+
# Uses the official Debian-based CRAN check environment
3+
name: Debian CRAN Check
4+
5+
on:
6+
push:
7+
branches: [main, master]
8+
pull_request:
9+
branches: [main, master]
10+
11+
jobs:
12+
check-cran-debian:
13+
runs-on: ubuntu-latest
14+
container:
15+
image: ghcr.io/r-devel/rcheckserver/debian:latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Install package dependencies
22+
run: |
23+
R -e 'install.packages(c("remotes", "rcmdcheck"), repos = "https://cloud.r-project.org")'
24+
R -e 'remotes::install_deps(dependencies = TRUE)'
25+
26+
- name: Run R CMD check with --as-cran
27+
run: |
28+
cd ..
29+
R CMD build --no-manual BayesMallowsSMC2
30+
R CMD check --as-cran BayesMallowsSMC2*.tar.gz

0 commit comments

Comments
 (0)