Skip to content

Commit

Permalink
Merge branch 'master' into enh/cuda_support
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriliogenovese authored Jan 18, 2025
2 parents 27448bc + bc456dd commit 7e57ab9
Show file tree
Hide file tree
Showing 249 changed files with 1,868 additions and 1,900 deletions.
41 changes: 1 addition & 40 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,43 +266,4 @@ jobs:
workflows:
version: 2
build_test_deploy:
jobs:
- compare_base_dockerfiles:
filters:
branches:
ignore:
- /docs?\/.*/
tags:
only: /.*/
- get_test_data:
filters:
branches:
ignore:
- /docs?\/.*/
tags:
only: /.*/
- test_pytest:
filters:
branches:
ignore:
- /docs?\/.*/
tags:
only: /.*/
requires:
- compare_base_dockerfiles
- get_test_data
- deploy_dockerhub:
filters:
branches:
only: master
tags:
only: /.*/
requires:
- test_pytest
- update_feedstock:
context: nipybot
filters:
branches:
only: /rel\/\d.*/
tags:
only: /.*/
jobs: []
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ skip = .git,*.pdf,*.svg,external
# ALS, FWE - neuroimaging specific abbrevs
# Comision - foreign word used
# expad - AFNI flag
ignore-words-list = te,inport,objekt,jist,nd,hel,inout,fith,whos,fot,ue,shs,smal,nam,filetest,suh,noo,reson,als,fwe,crasher,comision,afile,expad
ignore-words-list = te,inport,objekt,jist,nd,hel,inout,fith,whos,fot,ue,shs,smal,nam,filetest,suh,noo,reson,als,fwe,crasher,comision,afile,expad,burnin
8 changes: 8 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Thu Oct 31 10:01:38 2024 -0400 - [email protected] - STY: black [ignore-rev]
bd0d5856d183ba3918eda31f80db3b1d4387c55c
# Thu Mar 21 13:34:09 2024 -0400 - [email protected] - STY: black [ignore-rev]
c52fece0cf154c1a93a55b202d088f08924a023e
# Sun Mar 17 10:58:12 2024 -0400 - [email protected] - STY: black [ignore-rev]
e447b92bcb3b9ed9e35394d6edef1d91b7c424e6
# Sun Mar 17 10:44:57 2024 -0400 - [email protected] - STY: black
f1a8909d233ed2a707b6ee8937504eea9ee7f154
# Tue Feb 27 14:28:18 2024 -0500 - [email protected] - STY: black 2024.2 [ignore-rev]
f1cbc1c941f8d02659f8ef245aac0862efb80ccf
# Mon Sep 11 13:36:40 2023 +0200 - [email protected] - run black for nipype/interfaces/spm/preprocess.py
Expand Down
84 changes: 0 additions & 84 deletions .github/workflows/contrib.yml

This file was deleted.

142 changes: 65 additions & 77 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
name: Stable tests

# This file tests the claimed support range of nipype including
#
# * Operating systems: Linux, OSX
# * Dependencies: minimum requirements, optional requirements
# * Installation methods: setup.py, sdist, wheel, archive
name: Tox

on:
push:
branches:
- master
- maint/*
tags:
- "*"
branches: [ master, main, 'maint/*' ]
tags: [ '*' ]
pull_request:
branches:
- master
- maint/*
branches: [ master, main, 'maint/*' ]
schedule:
# 8am EST / 9am EDT Mondays
- cron: "0 13 * * 1"
Expand All @@ -26,27 +15,28 @@ defaults:
shell: bash

concurrency:
group: tests-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}
permissions:
contents: read

env:
# Force tox and pytest to use color
FORCE_COLOR: true


jobs:
build:
permissions:
contents: read # to fetch code (actions/checkout)

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3
- run: pip install --upgrade build twine
- name: Build sdist and wheel
run: python -m build
- run: twine check dist/*
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
- run: uv build
- run: uvx twine check dist/*
- uses: actions/upload-artifact@v4
with:
name: dist
Expand Down Expand Up @@ -82,72 +72,52 @@ jobs:
- name: Run tests
run: pytest --doctest-modules -v --pyargs nipype

stable:
test:
# Check each OS, all supported Python, minimum versions and latest releases
permissions:
contents: read # to fetch code (actions/checkout)

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-22.04"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
check: ["test"]
pip-flags: [""]
depends: ["REQUIREMENTS"]
deb-depends: [false]
nipype-extras: ["doc,tests,profiler"]
os: ["ubuntu-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
dependencies: [none, full, pre]
include:
- os: ubuntu-22.04
python-version: "3.8"
check: test
pip-flags: ""
depends: REQUIREMENTS
deb-depends: true
nipype-extras: doc,tests,profiler,duecredit,ssh
- os: ubuntu-20.04
python-version: 3.8
check: test
pip-flags: ""
depends: REQUIREMENTS
deb-depends: true
nipype-extras: doc,tests,nipy,profiler,duecredit,ssh
- os: ubuntu-latest
python-version: "3.9"
dependencies: min
exclude:
# Skip some intermediate versions for full tests
- python-version: "3.10"
dependencies: full
- python-version: "3.11"
dependencies: full
# Do not test pre-releases for versions out of SPEC0
- python-version: "3.9"
dependencies: pre
- python-version: "3.10"
dependencies: pre

env:
DEPENDS: ${{ matrix.depends }}
CHECK_TYPE: ${{ matrix.check }}
EXTRA_PIP_FLAGS: ${{ matrix.pip-flags }}
INSTALL_DEB_DEPENDENCIES: ${{ matrix.deb-depends }}
NIPYPE_EXTRAS: ${{ matrix.nipype-extras }}
INSTALL_TYPE: pip
CI_SKIP_TEST: 1
DEPENDS: ${{ matrix.dependencies }}

steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Create virtual environment
run: tools/ci/create_venv.sh
- name: Build archive
- name: Install tox
run: |
source tools/ci/build_archive.sh
echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
- name: Install Debian dependencies
run: tools/ci/install_deb_dependencies.sh
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Install dependencies
run: tools/ci/install_dependencies.sh
- name: Install Nipype
run: tools/ci/install.sh
- name: Run tests
run: tools/ci/check.sh
if: ${{ matrix.check != 'skiptests' }}
- uses: codecov/codecov-action@v4
uv tool install tox --with=tox-uv --with=tox-gh-actions
- name: Show tox config
run: tox c
- name: Run tox
run: tox -v --exit-and-dump-after 1200
- uses: codecov/codecov-action@v5
with:
file: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
if: ${{ always() }}
- name: Upload pytest test results
Expand All @@ -160,7 +130,7 @@ jobs:
publish:
runs-on: ubuntu-latest
environment: "Package deployment"
needs: [stable, test-package]
needs: [test, test-package]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
Expand All @@ -171,3 +141,21 @@ jobs:
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

checks:
runs-on: 'ubuntu-latest'
continue-on-error: true
strategy:
matrix:
check: ['specs', 'style']

steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
- name: Show tox config
run: uvx tox c
- name: Show tox config (this call)
run: uvx tox c -e ${{ matrix.check }}
- name: Run check
run: uvx tox -e ${{ matrix.check }}
4 changes: 2 additions & 2 deletions .github/workflows/tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- name: Start time
id: start
run: echo "::set-output name=start_time::$(date +'%Y-%m-%dT%H:%M:%S%z')"
run: echo start_time=$(date +'%Y-%m-%dT%H:%M:%S%z') >> $GITHUB_OUTPUT
- name: Trigger Nipype tutorial Github Action
run: |
set -x
Expand All @@ -38,7 +38,7 @@ jobs:
# fail if not extracted
[[ -n $RUN_ID ]] || exit 1
echo "::set-output name=run_id::$RUN_ID"
echo run_id=$RUN_ID >> $GITHUB_OUTPUT
- name: Check if action completed
timeout-minutes: 120
run: |
Expand Down
Loading

0 comments on commit 7e57ab9

Please sign in to comment.