Skip to content

[ENH]: Introduce data registries #2922

[ENH]: Introduce data registries

[ENH]: Introduce data registries #2922

Workflow file for this run

name: Build and preview docs
on:
push:
branches-ignore:
- 'main'
tags-ignore:
- v*
pull_request:
types:
- opened
- reopened
- synchronize
- closed
concurrency: preview-${{ github.ref }}
jobs:
build-docs:
runs-on: ubuntu-latest
# Use custom docs CI image
container: ghcr.io/juaml/junifer-docs:main
steps:
- name: Check ANTs
run: |
echo "Using ANTs : $(antsRegistration --version)"
- name: Install system dependencies
run: |
# actions/checkout fails to identify Git as it's not in the CI image
apt-get -qq update && \
apt-get -qq install -y \
git \
git-annex \
make \
jq
# Copy xfms directory
mkdir -p $HOME/junifer/data/xfms && \
cp -ar /root/junifer/data/xfms/. $HOME/junifer/data/xfms/
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e ".[docs,neurokit2]"
- name: Configure Git for DataLad
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Runner"
- name: Test build docs
run: |
BUILDDIR=_build/main make -C docs/ local
- name: Deploy preview
if: github.event_name == 'pull_request'
uses: rossjrw/pr-preview-action@v1
with:
source-dir: docs/_build/main