-
Notifications
You must be signed in to change notification settings - Fork 55
43 lines (37 loc) · 1.08 KB
/
test_docs.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
name: Test documentation
on:
pull_request:
jobs:
test-docs:
# Functionality for testing documentation builds on multiple OSes and Python versions
name: Build docs (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
steps:
# Grap the latest commit from the branch
- name: Checkout the branch
uses: actions/[email protected]
with:
persist-credentials: false
# Create a virtual environment
- name: create Conda environment
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
# Install Hatch
- name: Install Hatch
uses: pypa/hatch@install
- name: Build the documentation with MKDocs
run: |
conda install pandoc
hatch run docs:build