-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (43 loc) · 1.21 KB
/
test_build_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
44
45
46
47
48
49
50
name: Test Documentation
run-name: Test Documentation by ${{ github.actor }}
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: [ubuntu-latest]
if: "!contains(github.event.head_commit.message, 'skip docs')"
steps:
- uses: actions/checkout@v3
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
channels: conda-forge, defaults
auto-activate-base: true
activate-environment: ""
python-version: 3.11
- name: Source Miniconda
run: |
source $CONDA/etc/profile.d/conda.sh
conda activate
which python
python --version
echo $CONDA
conda install -n base conda-libmamba-solver
conda config --set solver libmamba
python -m pip install --upgrade pip
- name: Install DIALS environment and more
run: |
source $CONDA/etc/profile.d/conda.sh
conda activate
conda install -n base -c conda-forge -y dials
conda info
conda list
$CONDA/bin/pip install -e ".[docs]"
cd docs
export SPHINXBUILD="$CONDA/bin/sphinx-build"
make clean
make html