From a0c1f924b1a12833d395d2d5f95998cd04527a6e Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 18 Jan 2024 12:40:45 -0500 Subject: [PATCH] CI: Pre-fetch template for building docs --- .github/workflows/docs-build-update.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docs-build-update.yml b/.github/workflows/docs-build-update.yml index 9cb5013b39..bb1236d691 100644 --- a/.github/workflows/docs-build-update.yml +++ b/.github/workflows/docs-build-update.yml @@ -59,6 +59,10 @@ jobs: python -m pip install -r docs/requirements.txt python -m hatch version | tail -n1 | xargs + - name: Pre-install template + run: | + python -c "from templateflow.api import get; get('MNI152NLin2009cAsym', desc='brain', resolution=1, suffix='T1w')" + - name: Build docs run: | make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR="${CURBRANCH:-html}" html