Skip to content

Commit

Permalink
CI: Pre-fetch template for building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 18, 2024
1 parent bc00314 commit dcc1fd7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/docs-build-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ jobs:
python -m pip install -r docs/requirements.txt
python -m hatch version | tail -n1 | xargs
- name: Pre-install template
shell: python
run: |
from templateflow.api import get
get('MNI152NLin2009cAsym', desc='brain', resolution=1, suffix='T1w')
get('MNI152NLin2009cAsym', desc='fMRIPrep', resolution=2, suffix='boldref')
get('MNI152NLin2009cAsym', desc='brain', resolution=2, suffix='mask')
get('MNI152NLin2009cAsym', label='brain', resolution=1, suffix='probseg')
- name: Build docs
run: |
make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR="${CURBRANCH:-html}" html
Expand Down

0 comments on commit dcc1fd7

Please sign in to comment.