-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1.17 KB
/
quarto-build-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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."