Add the in-class scripts for SVM and NN #210
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 | |
pull_request: | |
branches: main | |
workflow_dispatch: | |
name: Build Site | |
permissions: | |
contents: write | |
pages: write | |
jobs: | |
build-website: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
# defaults: | |
# run: | |
# shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Quarto CLI | |
uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
tinytex: true | |
# version: 1.4.330 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libcurl4-openssl-dev libglu1-mesa-dev libxml2-dev libssl-dev libv8-dev libfontconfig1-dev libfreetype6-dev cmake libmagick++-dev libpoppler-cpp-dev tesseract-ocr libtesseract-dev | |
- name: Set up R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
# See here for more info https://github.com/r-lib/actions/tree/v2-branch/setup-renv | |
- name: Set up renv | |
uses: r-lib/actions/setup-renv@v2 | |
with: | |
cache-version: 3 | |
# - name: Increase RAM limit for R | |
# run: | | |
# ulimit -s 16384 | |
# ulimit -a | |
# you can also try the solution provided here https://github.com/rstudio/renv/issues/1028 and here https://github.com/randy3k/radian/issues/214 | |
# - name: Check Linux | |
# if: runner.os == 'Linux' | |
# env: | |
# _R_CHECK_CRAN_INCOMING_REMOTE_: false | |
# run: | | |
# ulimit -s unlimited | |
# Rscript -e 'rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")' | |
- name: Increase stack size | |
run: | | |
ulimit -s unlimited | |
ulimit -a | |
- name: Publish Quarto Project | |
uses: quarto-dev/quarto-actions/publish@v2 | |
with: | |
target: gh-pages | |
- name: Deploy 🚀 | |
if: github.event_name != 'pull_request' | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: _site # The folder the action should deploy. |