Update badge #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Documentation | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
update_docs: | |
name: Build and Deploy Documentation | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Conda Base | |
run: | | |
sudo rm -rf /usr/share/miniconda \ | |
&& sudo rm -rf /usr/local/miniconda \ | |
&& curl -SL -o miniforge.sh https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh \ | |
&& bash miniforge.sh -b -f -p ~/conda \ | |
&& source ~/conda/etc/profile.d/conda.sh \ | |
&& conda activate base \ | |
&& conda update -n base --yes conda | |
- name: Install Dependencies | |
run: | | |
source ~/conda/etc/profile.d/conda.sh \ | |
&& conda create --yes -n docs python==3.12 \ | |
&& conda activate docs \ | |
&& conda install --yes --file packaging/conda_build_requirements.txt | |
- name: Install Package | |
run: | | |
source ~/conda/etc/profile.d/conda.sh \ | |
&& conda activate docs \ | |
&& pip install . | |
- name: Run Serial Tests | |
run: | | |
source ~/conda/etc/profile.d/conda.sh \ | |
&& conda activate docs \ | |
&& export OMP_NUM_THREADS=1 \ | |
&& mkdir -p test \ | |
&& pushd test >/dev/null 2>&1 \ | |
&& python3 -c 'import flacarray.tests; flacarray.tests.run()' \ | |
&& popd >/dev/null 2>&1 | |
- name: Install Docs Dependencies | |
# AttributeError: 'MathBlockParser' object has no attribute 'parse_axt_heading' | |
# https://github.com/jupyter/nbconvert/issues/2198 | |
# mistune = "<3.1" | |
run: | | |
source ~/conda/etc/profile.d/conda.sh \ | |
&& conda activate docs \ | |
&& conda install --yes \ | |
mkdocs \ | |
mkdocstrings \ | |
mkdocstrings-python \ | |
mkdocs-material \ | |
mkdocs-material-extensions \ | |
mkdocs-jupyter \ | |
"mistune<3.1" \ | |
&& git config user.name 'github-actions[bot]' \ | |
&& git config user.email 'github-actions[bot]@users.noreply.github.com' | |
- name: Deploy Docs | |
run: | | |
source ~/conda/etc/profile.d/conda.sh \ | |
&& conda activate docs \ | |
&& cd docs \ | |
&& mkdocs gh-deploy --force |