From 3bc54ed297cfa18e2c11d7b4ba5bee81ef3c622b Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 09:51:59 +0200 Subject: [PATCH 01/22] update: use custom junifer docs ci image for docs-preview.yml --- .github/workflows/docs-preview.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 40838145c..72b7bc7aa 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -18,6 +18,7 @@ concurrency: preview-${{ github.ref }} jobs: build-docs: runs-on: ubuntu-latest + container: ghcr.io/juaml/junifer-docs:main steps: - name: Checkout source uses: actions/checkout@v4 @@ -44,20 +45,9 @@ jobs: run: | git config --global user.email "runner@github.com" git config --global user.name "GITHUB CI Runner" - - name: Install ANTs + - name: Check ANTs run: | - echo "++ Add universe repo" - sudo add-apt-repository -y universe - - echo "++ Update package manager info" - sudo apt-get update -qq - - echo "++ Downloading ANTs" - curl -fsSL -o ants.zip https://github.com/ANTsX/ANTs/releases/download/v2.5.1/ants-2.5.1-ubuntu-22.04-X64-gcc.zip - unzip ants.zip -d /opt - mv /opt/ants-2.5.1/bin/* /opt/ants-2.5.1 - rm ants.zip - echo "/opt/ants-2.5.1" >> $GITHUB_PATH + echo "Using ANTs : $(antsRegistration --version)" - name: Test build docs run: | BUILDDIR=_build/main make -C docs/ local -- 2.52.0 From 7cb9278194fbe525889c61b13277d64802e8ef6e Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 11:17:53 +0200 Subject: [PATCH 02/22] chore: incrementally test docs-preview.yml with new CI image --- .github/workflows/docs-preview.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 72b7bc7aa..42a25bf24 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -18,8 +18,12 @@ 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: Checkout source uses: actions/checkout@v4 with: @@ -45,9 +49,6 @@ jobs: run: | git config --global user.email "runner@github.com" git config --global user.name "GITHUB CI Runner" - - name: Check ANTs - run: | - echo "Using ANTs : $(antsRegistration --version)" - name: Test build docs run: | BUILDDIR=_build/main make -C docs/ local -- 2.52.0 From b6df4eb96441ce2930243090fd8a419267bd1300 Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 11:24:32 +0200 Subject: [PATCH 03/22] chore: install git in docs-preview.yml --- .github/workflows/docs-preview.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 42a25bf24..49f4c62be 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -24,6 +24,15 @@ jobs: - name: Check ANTs run: | echo "Using ANTs : $(antsRegistration --version)" + - name: Check for sudo + shell: bash + run: | + if type sudo >/dev/null 2>&1; then SUDO="sudo"; else SUDO=""; fi + echo "SUDO=$SUDO" >> $GITHUB_ENV + # actions/checkout fails to identify Git as it's not in the CI image + - name: Install Git + run: | + $SUDO apt-get update -qq && apt-get install git - name: Checkout source uses: actions/checkout@v4 with: @@ -33,15 +42,9 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.x" - - name: Check for sudo - shell: bash - run: | - if type sudo >/dev/null 2>&1; then SUDO="sudo"; else SUDO=""; fi - echo "SUDO=$SUDO" >> $GITHUB_ENV - name: Install dependencies run: | $SUDO bash -c "$(curl -fsSL http://neuro.debian.net/_files/neurodebian-travis.sh)" - $SUDO apt-get update -qq $SUDO apt-get install git-annex-standalone python -m pip install --upgrade pip setuptools wheel python -m pip install -e ".[docs,neurokit2]" -- 2.52.0 From df82c6b740f9d709d8c6a5d7d96307955beb115d Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 11:33:40 +0200 Subject: [PATCH 04/22] chore: install git with sudo in docs-preview.yml --- .github/workflows/docs-preview.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 49f4c62be..a09a99ca0 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -24,15 +24,11 @@ jobs: - name: Check ANTs run: | echo "Using ANTs : $(antsRegistration --version)" - - name: Check for sudo - shell: bash - run: | - if type sudo >/dev/null 2>&1; then SUDO="sudo"; else SUDO=""; fi - echo "SUDO=$SUDO" >> $GITHUB_ENV # actions/checkout fails to identify Git as it's not in the CI image - name: Install Git run: | - $SUDO apt-get update -qq && apt-get install git + sudo apt-get -qq update + sudo apt-get -qq install git - name: Checkout source uses: actions/checkout@v4 with: -- 2.52.0 From 9352a5632cd51c10200176a674511e33fa384e5a Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 11:38:08 +0200 Subject: [PATCH 05/22] chore: explicit accept for apt-get install and remove sudo usage in docs-preview.yml --- .github/workflows/docs-preview.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index a09a99ca0..97d8116dc 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -27,8 +27,7 @@ jobs: # actions/checkout fails to identify Git as it's not in the CI image - name: Install Git run: | - sudo apt-get -qq update - sudo apt-get -qq install git + apt-get -qq update && apt-get -qq install -y git - name: Checkout source uses: actions/checkout@v4 with: -- 2.52.0 From 1665115018bb3c41e10073959b01fd9da6dd89a6 Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 11:42:19 +0200 Subject: [PATCH 06/22] chore: update deps installation in docs-preview.yml --- .github/workflows/docs-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 97d8116dc..24a1353a5 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -39,8 +39,8 @@ jobs: python-version: "3.x" - name: Install dependencies run: | - $SUDO bash -c "$(curl -fsSL http://neuro.debian.net/_files/neurodebian-travis.sh)" - $SUDO apt-get install git-annex-standalone + apt-get -qq install -y curl git-annex-standalone + bash -c "$(curl -fsSL http://neuro.debian.net/_files/neurodebian-travis.sh)" python -m pip install --upgrade pip setuptools wheel python -m pip install -e ".[docs,neurokit2]" - name: Configure git for datalad -- 2.52.0 From a3925c8faa11b60622e8adb18183f6bb27bf8458 Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 11:45:27 +0200 Subject: [PATCH 07/22] chore: proper installation candidate for git-annex in docs-preview.yml --- .github/workflows/docs-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 24a1353a5..32e572a21 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -39,7 +39,7 @@ jobs: python-version: "3.x" - name: Install dependencies run: | - apt-get -qq install -y curl git-annex-standalone + apt-get -qq install -y curl git-annex bash -c "$(curl -fsSL http://neuro.debian.net/_files/neurodebian-travis.sh)" python -m pip install --upgrade pip setuptools wheel python -m pip install -e ".[docs,neurokit2]" -- 2.52.0 From d832b2b02c2b7793d82957944761a4322f8a0fb5 Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 11:53:18 +0200 Subject: [PATCH 08/22] chore: remove neurodebian setup in docs-preview.yml --- .github/workflows/docs-preview.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 32e572a21..79561061b 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -39,8 +39,7 @@ jobs: python-version: "3.x" - name: Install dependencies run: | - apt-get -qq install -y curl git-annex - bash -c "$(curl -fsSL http://neuro.debian.net/_files/neurodebian-travis.sh)" + apt-get -qq install -y git-annex python -m pip install --upgrade pip setuptools wheel python -m pip install -e ".[docs,neurokit2]" - name: Configure git for datalad -- 2.52.0 From 44e0c509c5f334f6ec24d14bc673eb7a474e2f1a Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 12:41:52 +0200 Subject: [PATCH 09/22] chore: add make to deps in docs-preview.yml --- .github/workflows/docs-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 79561061b..ac83d303d 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -39,7 +39,7 @@ jobs: python-version: "3.x" - name: Install dependencies run: | - apt-get -qq install -y git-annex + apt-get -qq install -y git-annex make python -m pip install --upgrade pip setuptools wheel python -m pip install -e ".[docs,neurokit2]" - name: Configure git for datalad -- 2.52.0 From be343b775ba63f887ab72e27fae9afdfdd4a334c Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 14:41:41 +0200 Subject: [PATCH 10/22] chore: add xfms symlink and tidy up docs-preview.yml --- .github/workflows/docs-preview.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index ac83d303d..df4cf6d44 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -24,10 +24,16 @@ jobs: - name: Check ANTs run: | echo "Using ANTs : $(antsRegistration --version)" - # actions/checkout fails to identify Git as it's not in the CI image - - name: Install Git + - name: Install system dependencies run: | - apt-get -qq update && apt-get -qq install -y git + # 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 + # Symlink xfms directory + ln -s /opt/xfms $HOME/junifer/data/xfms - name: Checkout source uses: actions/checkout@v4 with: @@ -37,9 +43,8 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.x" - - name: Install dependencies + - name: Install Python dependencies run: | - apt-get -qq install -y git-annex make python -m pip install --upgrade pip setuptools wheel python -m pip install -e ".[docs,neurokit2]" - name: Configure git for datalad -- 2.52.0 From 20823e4c0a9368809fcb2ce439c25c883be97465 Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 14:43:57 +0200 Subject: [PATCH 11/22] chore: add xfms dir creation in docs-preview.yml --- .github/workflows/docs-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index df4cf6d44..d91481bbe 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -33,6 +33,7 @@ jobs: git-annex \ make # Symlink xfms directory + mkdir -p $HOME/junifer/data/xfms ln -s /opt/xfms $HOME/junifer/data/xfms - name: Checkout source uses: actions/checkout@v4 -- 2.52.0 From 5062c8199eec8681043d8ff65b38427c0e396984 Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 15:29:57 +0200 Subject: [PATCH 12/22] chore: correct path for symlink --- .github/workflows/docs-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index d91481bbe..1a08fd2e2 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -34,7 +34,7 @@ jobs: make # Symlink xfms directory mkdir -p $HOME/junifer/data/xfms - ln -s /opt/xfms $HOME/junifer/data/xfms + ln -s /root/junifer/data/xfms $HOME/junifer/data/xfms - name: Checkout source uses: actions/checkout@v4 with: -- 2.52.0 From b20c3b6d7b49c7a62b189545ad9bc649a18d10ae Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 15:48:01 +0200 Subject: [PATCH 13/22] chore: copy instead of symlink xfms in docs-preview.yml --- .github/workflows/docs-preview.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 1a08fd2e2..aadde71c0 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -32,9 +32,9 @@ jobs: git \ git-annex \ make - # Symlink xfms directory - mkdir -p $HOME/junifer/data/xfms - ln -s /root/junifer/data/xfms $HOME/junifer/data/xfms + # Copy xfms directory + mkdir -p $HOME/junifer/data/xfms && \ + cp -r /root/junifer/data/xfms $HOME/junifer/data/xfms - name: Checkout source uses: actions/checkout@v4 with: -- 2.52.0 From b53f306040f6eb4862df969a69a0ccb37cbca97d Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 17:23:13 +0200 Subject: [PATCH 14/22] chore: test xfms dir content in docs-preview.yml --- .github/workflows/docs-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index aadde71c0..e4b9727de 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -35,6 +35,7 @@ jobs: # Copy xfms directory mkdir -p $HOME/junifer/data/xfms && \ cp -r /root/junifer/data/xfms $HOME/junifer/data/xfms + ls -alh $HOME/junifer/data/xfms - name: Checkout source uses: actions/checkout@v4 with: -- 2.52.0 From df5fccafd5482fdd1ed1cb2508a0037a7877bef2 Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 17:26:24 +0200 Subject: [PATCH 15/22] chore: test main xfms dir in docs-preview.yml --- .github/workflows/docs-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index e4b9727de..a225356a3 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -35,6 +35,7 @@ jobs: # Copy xfms directory mkdir -p $HOME/junifer/data/xfms && \ cp -r /root/junifer/data/xfms $HOME/junifer/data/xfms + ls -alh /root/junifer/data/xfms ls -alh $HOME/junifer/data/xfms - name: Checkout source uses: actions/checkout@v4 -- 2.52.0 From c2503b1d450ae4bf7ffd26a41fce22277268ddef Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 17:36:12 +0200 Subject: [PATCH 16/22] chore: fix xfms dir copying in docs-preview.yml --- .github/workflows/docs-preview.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index a225356a3..277c905ee 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -33,8 +33,7 @@ jobs: git-annex \ make # Copy xfms directory - mkdir -p $HOME/junifer/data/xfms && \ - cp -r /root/junifer/data/xfms $HOME/junifer/data/xfms + cp -ar /root/junifer/data/xfms/. $HOME/junifer/data/xfms/ ls -alh /root/junifer/data/xfms ls -alh $HOME/junifer/data/xfms - name: Checkout source -- 2.52.0 From 1e5953796cc29e9156feec4953fedef8d265ee36 Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 17:38:10 +0200 Subject: [PATCH 17/22] chore: revert xfms dir creation in docs-preview.yml --- .github/workflows/docs-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 277c905ee..730fd17da 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -33,6 +33,7 @@ jobs: git-annex \ make # Copy xfms directory + mkdir -p $HOME/junifer/data/xfms && \ cp -ar /root/junifer/data/xfms/. $HOME/junifer/data/xfms/ ls -alh /root/junifer/data/xfms ls -alh $HOME/junifer/data/xfms -- 2.52.0 From 9e7e3239544ac4fa65e083c78469a8ba34ea5e37 Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 18:00:21 +0200 Subject: [PATCH 18/22] chore: install jq for preview-action in docs-preview.yml --- .github/workflows/docs-preview.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 730fd17da..b314de4be 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -31,7 +31,8 @@ jobs: apt-get -qq install -y \ git \ git-annex \ - make + make \ + jq # Copy xfms directory mkdir -p $HOME/junifer/data/xfms && \ cp -ar /root/junifer/data/xfms/. $HOME/junifer/data/xfms/ -- 2.52.0 From 43c3b0e579a4f4445ef5681f8ff0e5a7d6ae5eff Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Fri, 11 Oct 2024 18:00:47 +0200 Subject: [PATCH 19/22] chore: cosmetic improve in docs-preview.yml --- .github/workflows/docs-preview.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index b314de4be..d79aa1a60 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -51,10 +51,10 @@ jobs: run: | python -m pip install --upgrade pip setuptools wheel python -m pip install -e ".[docs,neurokit2]" - - name: Configure git for datalad + - name: Configure Git for DataLad run: | - git config --global user.email "runner@github.com" - git config --global user.name "GITHUB CI Runner" + git config --global user.email "junifer-runner@github.com" + git config --global user.name "GitHub Runner" - name: Test build docs run: | BUILDDIR=_build/main make -C docs/ local -- 2.52.0 From e685857837e237a4d799635deac66b86f5bb6349 Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Mon, 14 Oct 2024 09:59:27 +0200 Subject: [PATCH 20/22] chore: remove testing commands in docs-preview.yml --- .github/workflows/docs-preview.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index d79aa1a60..608177738 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -36,8 +36,6 @@ jobs: # Copy xfms directory mkdir -p $HOME/junifer/data/xfms && \ cp -ar /root/junifer/data/xfms/. $HOME/junifer/data/xfms/ - ls -alh /root/junifer/data/xfms - ls -alh $HOME/junifer/data/xfms - name: Checkout source uses: actions/checkout@v4 with: -- 2.52.0 From bcb40d51e869a2d0662b4a62fd5e18f931fe697e Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Mon, 14 Oct 2024 10:00:08 +0200 Subject: [PATCH 21/22] update: use custom junifer docs ci image for docs.yml --- .github/workflows/docs.yml | 47 +++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7b3860869..7ec6b3192 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,7 +12,24 @@ on: 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: @@ -23,37 +40,15 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.x" - - name: Check for sudo - shell: bash + - name: Install Python dependencies run: | - if type sudo >/dev/null 2>&1; then SUDO="sudo"; else SUDO=""; fi - echo "SUDO=$SUDO" >> $GITHUB_ENV - - name: Install dependencies - run: | - $SUDO bash -c "$(curl -fsSL http://neuro.debian.net/_files/neurodebian-travis.sh)" - $SUDO apt-get update -qq - $SUDO apt-get install git-annex-standalone python -m pip install --upgrade pip setuptools wheel python -m pip install -e ".[docs,neurokit2]" python -m pip install git+https://github.com/dls-controls/sphinx-multiversion@only-arg - - name: Configure git for datalad + - name: Configure Git for DataLad run: | - git config --global user.email "runner@github.com" - git config --global user.name "GITHUB CI Runner" - - name: Install ANTs - run: | - echo "++ Add universe repo" - sudo add-apt-repository -y universe - - echo "++ Update package manager info" - sudo apt-get update -qq - - echo "++ Downloading ANTs" - curl -fsSL -o ants.zip https://github.com/ANTsX/ANTs/releases/download/v2.5.1/ants-2.5.1-ubuntu-22.04-X64-gcc.zip - unzip ants.zip -d /opt - mv /opt/ants-2.5.1/bin/* /opt/ants-2.5.1 - rm ants.zip - echo "/opt/ants-2.5.1" >> $GITHUB_PATH + git config --global user.email "junifer-runner@github.com" + git config --global user.name "GitHub Runner" - name: Checkout gh-pages # As we already did a deploy of gh-pages above, it is guaranteed to be there # so check it out so we can selectively build docs below -- 2.52.0 From e816c55bfb0d740263172ae4f567943f35583207 Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Mon, 14 Oct 2024 10:03:06 +0200 Subject: [PATCH 22/22] chore: add changelog 374.misc --- docs/changes/newsfragments/374.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/changes/newsfragments/374.misc diff --git a/docs/changes/newsfragments/374.misc b/docs/changes/newsfragments/374.misc new file mode 100644 index 000000000..7ba4471cb --- /dev/null +++ b/docs/changes/newsfragments/374.misc @@ -0,0 +1 @@ +Adopt usage of custom docs CI image for building and previewing docs actions by `Synchon Mandal`_ -- 2.52.0