Skip to content

Tutorial Exited States Methods #3

Tutorial Exited States Methods

Tutorial Exited States Methods #3

name: Quarto Build Test
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3 # v3 is the third major version of actions/checkout
# Set up Miniconda
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment.yml
auto-update-conda: true
activate-environment: blogqa
# Install the ipykernel package
- name: Install ipykernel
run: |
conda run -n blogqa conda install -y ipykernel
conda run -n blogqa python -m ipykernel install --user --name blogqa
# Set up Quarto
- name: Setup Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: '1.3.450'
# Compile Quarto site and check for compiling errors
- name: Check if Quarto site compiles
run: |
conda run -n blogqa quarto render .
# Notify if compiling fails
- name: Notify failure
if: failure()
run: echo "Quarto site failed to compile."