Skip to content

Build docs

Build docs #156

Workflow file for this run

name: Build docs
on:
push:
branches:
- main
release:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
max-parallel: 5
steps:
- name: Set up GCC
run: |
sudo apt-get install -y gcc
shell: bash -l {0}
- name: install gsl
run: |
sudo apt-get install -y libgsl-dev
- name: check out X-PSI
uses: actions/checkout@v3
with:
ref: api-for-cornerplotter-broken-in-github
- name: Install Python3 Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
cache-env: true
cache-env-key: env-envkey-${{ github.sha }}-${{ github.run_attempt }}
environment-file: basic_environment.yml
environment-name: xpsipy3
extra-specs: |
python=3.10
- name : install docs dependencies
run: |
micromamba install sphinx decorator h5py
micromamba install -c conda-forge nbsphinx nbconvert
pip install sphinxcontrib-websupport sphinx_rtd_theme
- name: install X-PSI package
run: |
python setup.py install
shell: bash -l {0}
env:
CC: gcc-10
- name : build docs
run: |
make html
working-directory: docs/