|
5 | 5 | push:
|
6 | 6 | branches: [ 'doc/*', 'docs/*', master, "maint/*" ]
|
7 | 7 | tags: [ '*' ]
|
| 8 | + pull_request: |
| 9 | + branches: [ master, 'maint/*' ] |
8 | 10 |
|
9 | 11 | concurrency:
|
10 | 12 | group: ${{ github.workflow }}-${{ github.ref }}
|
11 | 13 | cancel-in-progress: true
|
12 | 14 |
|
13 | 15 | jobs:
|
14 | 16 | build:
|
| 17 | + if: ${{ github.event_name != 'pull_request' || !contains(github.event.head_commit.message, '[skip ci]') }} |
15 | 18 | runs-on: ubuntu-latest
|
16 | 19 |
|
17 | 20 | steps:
|
@@ -39,10 +42,11 @@ jobs:
|
39 | 42 | # Pacify git if we were to commit something
|
40 | 43 | git config user.email "[email protected]"
|
41 | 44 | git config user.name "NiPreps Bot"
|
| 45 | +
|
42 | 46 | - name: Install GraphViz & pandoc
|
43 | 47 | run: |
|
44 | 48 | sudo apt-get update -y
|
45 |
| - sudo apt-get install -y --no-install-recommends graphviz pandoc |
| 49 | + sudo apt-get install -y --no-install-recommends graphviz pandoc texlive |
46 | 50 |
|
47 | 51 | - name: Set up Python 3
|
48 | 52 | uses: actions/setup-python@v5
|
|
55 | 59 | python -m pip install -r docs/requirements.txt
|
56 | 60 | python -m hatch version | tail -n1 | xargs
|
57 | 61 |
|
| 62 | + - name: Pre-install template |
| 63 | + shell: python |
| 64 | + run: | |
| 65 | + from templateflow.api import get |
| 66 | + get('MNI152NLin2009cAsym', desc='brain', resolution=1, suffix='T1w') |
| 67 | + get('MNI152NLin2009cAsym', desc='fMRIPrep', resolution=2, suffix='boldref') |
| 68 | + get('MNI152NLin2009cAsym', desc='brain', resolution=2, suffix='mask') |
| 69 | + get('MNI152NLin2009cAsym', label='brain', resolution=1, suffix='probseg') |
| 70 | +
|
58 | 71 | - name: Build docs
|
59 | 72 | run: |
|
60 | 73 | make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR="${CURBRANCH:-html}" html
|
|
0 commit comments