[CI]: Update CI workflows #428
4 changed files with 21 additions and 16 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -16,13 +16,14 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-tests:
|
run-tests:
|
||||||
|
# https://github.com/actions/setup-python/issues/1013#issuecomment-2642078401
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
# Use custom docs CI image
|
# Use custom CI image
|
||||||
container: ghcr.io/juaml/junifer-ci:main
|
container: ghcr.io/juaml/junifer-ci:main
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
python-version: ['3.9', '3.10', '3.11', '3.12']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check ANTs
|
- name: Check ANTs
|
||||||
|
|
@ -43,10 +44,10 @@ jobs:
|
||||||
git-annex \
|
git-annex \
|
||||||
make \
|
make \
|
||||||
jq
|
jq
|
||||||
- name: Copy xfms directory
|
- name: Copy junifer-data directory
|
||||||
run: |
|
run: |
|
||||||
mkdir -p $HOME/junifer/data/xfms
|
mkdir -p $HOME/junifer_data/v1
|
||||||
cp -ar /root/junifer/data/xfms/. $HOME/junifer/data/xfms/
|
cp -ar /root/junifer_data/v1/. $HOME/junifer_data/v1/
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
16
.github/workflows/docs-preview.yml
vendored
16
.github/workflows/docs-preview.yml
vendored
|
|
@ -17,6 +17,7 @@ concurrency: preview-${{ github.ref }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-docs:
|
build-docs:
|
||||||
|
# https://github.com/actions/setup-python/issues/1013#issuecomment-2642078401
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
# Use custom docs CI image
|
# Use custom docs CI image
|
||||||
container: ghcr.io/juaml/junifer-docs:main
|
container: ghcr.io/juaml/junifer-docs:main
|
||||||
|
|
@ -25,18 +26,19 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "Using ANTs : $(antsRegistration --version)"
|
echo "Using ANTs : $(antsRegistration --version)"
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
|
||||||
# actions/checkout fails to identify Git as it's not in the CI image
|
# actions/checkout fails to identify Git as it's not in the CI image
|
||||||
apt-get -qq update && \
|
run: |
|
||||||
|
apt-get -qq update
|
||||||
apt-get -qq install -y \
|
apt-get -qq install -y \
|
||||||
git \
|
git \
|
||||||
git-annex \
|
git-annex \
|
||||||
make \
|
make \
|
||||||
jq
|
jq
|
||||||
# Copy xfms directory
|
- name: Copy junifer-data directory
|
||||||
mkdir -p $HOME/junifer/data/xfms && \
|
run: |
|
||||||
cp -ar /root/junifer/data/xfms/. $HOME/junifer/data/xfms/
|
mkdir -p $HOME/junifer_data/v1
|
||||||
- name: Checkout source
|
cp -ar /root/junifer_data/v1/. $HOME/junifer_data/v1/
|
||||||
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
@ -44,7 +46,7 @@ jobs:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.12"
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
|
|
|
||||||
9
.github/workflows/docs.yml
vendored
9
.github/workflows/docs.yml
vendored
|
|
@ -12,6 +12,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-docs:
|
build-docs:
|
||||||
|
# https://github.com/actions/setup-python/issues/1013#issuecomment-2642078401
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
# Use custom docs CI image
|
# Use custom docs CI image
|
||||||
container: ghcr.io/juaml/junifer-docs:main
|
container: ghcr.io/juaml/junifer-docs:main
|
||||||
|
|
@ -28,10 +29,10 @@ jobs:
|
||||||
git-annex \
|
git-annex \
|
||||||
make \
|
make \
|
||||||
jq
|
jq
|
||||||
- name: Copy xfms directory
|
- name: Copy junifer-data directory
|
||||||
run: |
|
run: |
|
||||||
mkdir -p $HOME/junifer/data/xfms
|
mkdir -p $HOME/junifer_data/v1
|
||||||
cp -ar /root/junifer/data/xfms/. $HOME/junifer/data/xfms/
|
cp -ar /root/junifer_data/v1/. $HOME/junifer_data/v1/
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
@ -41,7 +42,7 @@ jobs:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.12"
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
|
|
|
||||||
1
docs/changes/newsfragments/428.misc
Normal file
1
docs/changes/newsfragments/428.misc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Improve GitHub Actions workflows by `Synchon Mandal`_
|
||||||
Loading…
Reference in a new issue