Update to not use paired on t.test #263
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
on: | |
push: | |
branches: main | |
env: | |
RENV_PATHS_ROOT: ~/.cache/R/renv | |
name: Build Site | |
jobs: | |
quarto: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Install libgit and other linux packages | |
run: | | |
sudo apt-get install libgit2-dev libudunits2-dev libgdal-dev libgeos-dev libproj-dev | |
- name: Install renv from github | |
uses: r-lib/actions/setup-renv@v2 | |
- name: Cache packages | |
uses: actions/cache@v1 | |
with: | |
path: ${{ env.RENV_PATHS_ROOT }} | |
key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }} | |
restore-keys: | | |
${{ runner.os }}-renv- | |
- name: Restore packages | |
shell: Rscript {0} | |
run: | | |
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv") | |
renv::restore() | |
# - name: Query dependencies | |
# run: | | |
# install.packages("remotes") | |
# saveRDS(remotes::dev_package_deps(dependencies = TRUE), "depends.Rds", version = 2) | |
# shell: Rscript {0} | |
# - name: Install system dependencies on Linux | |
# if: runner.os == 'Linux' | |
# run: | | |
# while read -r cmd | |
# do | |
# eval sudo $cmd | |
# done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "18.04"))') | |
- name: Install Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
#- name: Install dependencies | |
# run: | | |
# remotes::install_deps(dependencies = TRUE) | |
# shell: Rscript {0} | |
#- name: Cache R packages | |
# if: runner.os != 'Windows' | |
# uses: actions/cache@v3 | |
# with: | |
# path: ${{ env.R_LIBS_USER }} | |
# key: ${{ env.cache-version }}-${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('depends.Rds') }} | |
# restore-keys: ${{ env.cache-version }}-${{ runner.os }}-r-${{ matrix.config.r }}- | |
# - name: Build site | |
# run: quarto::quarto_render() | |
# shell: Rscript {0} | |
- name: Render and Publish | |
uses: quarto-dev/quarto-actions/publish@v2 | |
with: | |
target: gh-pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |