Restore testing on 3.6 #721
This file contains 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
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. | |
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions | |
on: | |
schedule: | |
- cron: "24 06 * * 1" | |
push: | |
branches: | |
- main | |
- master | |
paths-ignore: | |
- "Meta**" | |
- "memcheck**" | |
- "docs**" | |
- "**.git" | |
- "**.json" | |
- "**.md" | |
- "**.yml" | |
- "!**R-CMD-check.yml" | |
- "**.R[dD]ata" | |
- "**.Rpro*" | |
pull_request: | |
branches: | |
- main | |
- master | |
paths-ignore: | |
- "Meta**" | |
- "memcheck**" | |
- "docs**" | |
- "**.git" | |
- "**.json" | |
- "**.md" | |
- "**.yml" | |
- "!**R-CMD-check.yml" | |
- "**.R[dD]ata" | |
- "**.Rpro*" | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: windows-latest, r: 'release'} | |
- {os: macOS-latest, r: 'release'} | |
- {os: ubuntu-latest, r: '3.6', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} | |
- {os: ubuntu-latest, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} | |
- {os: ubuntu-latest, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} | |
env: | |
_R_CHECK_CRAN_INCOMING_: true # Seemingly not set by --as-cran | |
_R_CHECK_FORCE_SUGGESTS_: false # CRAN settings | |
R_COMPILE_AND_INSTALL_PACKAGES: 'never' | |
_R_CHECK_THINGS_IN_CHECK_DIR_: false | |
R_REMOTES_STANDALONE: true | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
RSPM: ${{ matrix.config.rspm }} | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v4 | |
- name: Set up R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
extra-repositories: https://ms609.github.io/packages/ | |
- name: Install apt packages (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y texlive-latex-base libglpk-dev texlive-fonts-recommended | |
- name: Set up R dependencies (R 3.6) | |
if: matrix.config.r == '3.6' | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
needs: | | |
check | |
- name: Set up R dependencies (Windows) | |
if: runner.os == 'Windows' | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | | |
RcppCore/Rcpp | |
ms609/TreeTools | |
ms609/TreeDistData | |
needs: | | |
check | |
coverage | |
- name: Set up R dependencies (Non-Windows) | |
if: runner.os != 'Windows' && matrix.config.r != '3.6' | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | | |
RcppCore/Rcpp | |
ms609/TreeTools | |
ms609/TreeDistData | |
phangorn=?ignore-before-r=4.4.0 | |
ggplot2=?ignore-before-r=4.4.0 | |
hypervolume=?ignore-before-r=4.4.0 | |
kdensity=?ignore-before-r=4.4.0 | |
Rogue=?ignore-before-r=4.4.0 | |
TreeSearch=?ignore-before-r=4.4.0 | |
Umatrix=?ignore-before-r=4.4.0 | |
uwot=?ignore-before-r=4.4.0 | |
needs: | | |
check | |
- name: Set up pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Check package | |
uses: r-lib/actions/check-r-package@v2 | |
- name: Code coverage | |
if: runner.os == 'Windows' | |
run: covr::codecov() | |
shell: Rscript {0} |