Add Debian CRAN checks using official Docker container to GitHub Actions #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CRAN Debian incoming checks | |
| # Uses the official Debian-based CRAN check environment | |
| name: Debian CRAN Check | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| check-cran-debian: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/r-devel/rcheckserver/debian:latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install package dependencies | |
| run: | | |
| R -e 'install.packages(c("remotes", "rcmdcheck"), repos = "https://cloud.r-project.org")' | |
| R -e 'remotes::install_deps(dependencies = TRUE)' | |
| - name: Run R CMD check with --as-cran | |
| run: | | |
| cd .. | |
| R CMD build --no-manual BayesMallowsSMC2 | |
| R CMD check --as-cran BayesMallowsSMC2*.tar.gz |