Skip to content

Commit 5e5ffbf

Browse files
committed
Merge branch 'master' of github.com:nipy/nipype into predicted_signal
2 parents f698f4b + 5d2e224 commit 5e5ffbf

File tree

211 files changed

+4501
-2509
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+4501
-2509
lines changed

.circleci/config.yml

+4-34
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ _build_main_image_py36: &build_main_image_py36
5252
--rm=false \
5353
--tag nipype/nipype:latest \
5454
--tag nipype/nipype:py36 \
55+
$(test -z "${CIRCLE_TAG}" || echo --tag nipype/nipype:"${CIRCLE_TAG}") \
5556
--build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
5657
--build-arg VCS_REF="$(git rev-parse --short HEAD)" \
5758
--build-arg VERSION="${CIRCLE_TAG}" /home/circleci/nipype
@@ -192,6 +193,7 @@ jobs:
192193
docker push nipype/nipype:base
193194
docker push nipype/nipype:latest
194195
docker push nipype/nipype:py36
196+
test -z "${CIRCLE_TAG}" || docker push nipype/nipype:"${CIRCLE_TAG}"
195197
- run:
196198
name: Move pruned Dockerfile to /tmp/docker/cache directory
197199
command: |
@@ -289,44 +291,10 @@ jobs:
289291
ssh-add ~/.ssh/id_ed25519
290292
/home/circleci/nipype/tools/feedstock.sh
291293
292-
build_docs:
293-
docker:
294-
- image: python:3.7.4
295-
working_directory: /tmp/src/nipype
296-
environment:
297-
- FSLOUTPUTTYPE: 'NIFTI'
298-
steps:
299-
- checkout
300-
- run:
301-
name: Check Python version and upgrade pip
302-
command: |
303-
python --version
304-
python -m pip install -U pip
305-
- run:
306-
name: Install graphviz
307-
command: |
308-
apt-get update
309-
apt-get install -y graphviz
310-
- run:
311-
name: Install Requirements (may contain pinned versions)
312-
command: python -m pip install -r doc/requirements.txt
313-
- run:
314-
name: Install NiPype
315-
command: python -m pip install ".[doc]"
316-
- run:
317-
name: Build documentation
318-
command: make -C doc html
319-
- store_artifacts:
320-
path: /tmp/src/nipype/doc/_build/html
321-
322294
workflows:
323295
version: 2
324296
build_test_deploy:
325297
jobs:
326-
- build_docs:
327-
filters:
328-
tags:
329-
only: /.*/
330298
- pypi_precheck:
331299
filters:
332300
branches:
@@ -353,6 +321,8 @@ workflows:
353321
filters:
354322
branches:
355323
only: master
324+
tags:
325+
only: /.*/
356326
requires:
357327
- test_pytest
358328
- deploy_pypi:

.git-blame-ignore-revs

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Commits with messages like "STY: black" or "run black"
2+
12deb959cccc431fb8222cc5854f1c92a0080021
3+
f64bf338f630a9ee5cbe7a3ec98c68292897e720
4+
83358d7f17aac07cb90d0330f11ea2322e2974d8
5+
faef7d0f93013a700c882f709e98fb3cd36ebb03
6+
d50c1858564c0b3073fb23c54886a0454cb66afa
7+
417b8897a116fcded5000e21e2b6ccbe29452a52
8+
aaf677a87f64c485f3e305799e4a5dc73b69e5fb
9+
f763008442d88d8ce00ec266698268389415f8d6
10+
b1eccafd4edc8503b02d715f5b5f6f783520fdf9
11+
70db90349598cc7f26a4a513779529fba7d0a797
12+
6c1d91d71f6f0db0e985bd2adc34206442b0653d
13+
97bdbd5f48ab242de5288ba4715192a27619a803
14+
78fa360f5b785224349b8b85b07e510d2233bb63
15+
7f85f43a34de8bff8e634232c939b17cee8e8fc5
16+
9c50b5daa797def5672dd057155b0e2c658853e2
17+
47194993ae14aceeec436cfb3769def667196668
18+
75653feadc6667d5313d83e9c62a5d5819771a9c
19+
497b44d680eee0892fa59c6aaaae22a17d70a536

.github/workflows/contrib.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Contribution checks
2+
3+
# This checks validate contributions meet baseline checks
4+
#
5+
# * specs - Ensure make
6+
7+
on:
8+
push:
9+
branches:
10+
- master
11+
- maint/*
12+
pull_request:
13+
branches:
14+
- master
15+
- maint/*
16+
17+
defaults:
18+
run:
19+
shell: bash
20+
21+
jobs:
22+
stable:
23+
# Check each OS, all supported Python, minimum versions and latest releases
24+
runs-on: ${{ matrix.os }}
25+
strategy:
26+
matrix:
27+
os: ['ubuntu-18.04']
28+
python-version: [3.8]
29+
nipype-extras: ['dev']
30+
check: ['specs', 'style']
31+
env:
32+
DEPENDS: ""
33+
CHECK_TYPE: ${{ matrix.check }}
34+
NIPYPE_EXTRAS: ${{ matrix.nipype-extras }}
35+
EXTRA_PIP_FLAGS: ""
36+
INSTALL_DEB_DEPENDENCIES: false
37+
INSTALL_TYPE: pip
38+
CI_SKIP_TEST: 1
39+
40+
steps:
41+
- uses: actions/checkout@v2
42+
with:
43+
submodules: recursive
44+
fetch-depth: 0
45+
- name: Set up Python ${{ matrix.python-version }}
46+
uses: actions/setup-python@v2
47+
with:
48+
python-version: ${{ matrix.python-version }}
49+
- name: Display Python version
50+
run: python -c "import sys; print(sys.version)"
51+
- name: Create virtual environment
52+
run: tools/ci/create_venv.sh
53+
- name: Build archive
54+
run: |
55+
source tools/ci/build_archive.sh
56+
echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
57+
- name: Install Debian dependencies
58+
run: tools/ci/install_deb_dependencies.sh
59+
if: ${{ matrix.os == 'ubuntu-18.04' }}
60+
- name: Install dependencies
61+
run: tools/ci/install_dependencies.sh
62+
- name: Install Nipype
63+
run: tools/ci/install.sh
64+
- name: Run tests
65+
run: tools/ci/check.sh
66+
if: ${{ matrix.check != 'skiptests' }}
67+
- uses: codecov/codecov-action@v1
68+
with:
69+
file: coverage.xml
70+
if: ${{ always() }}
71+
- name: Upload pytest test results
72+
uses: actions/upload-artifact@v2
73+
with:
74+
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
75+
path: test-results.xml
76+
if: ${{ always() && matrix.check == 'test' }}

.github/workflows/main.yml

-12
This file was deleted.

.github/workflows/tests.yml

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Stable tests
2+
3+
# This file tests the claimed support range of nipype including
4+
#
5+
# * Operating systems: Linux, OSX
6+
# * Dependencies: minimum requirements, optional requirements
7+
# * Installation methods: setup.py, sdist, wheel, archive
8+
9+
on:
10+
push:
11+
branches:
12+
- master
13+
- maint/*
14+
pull_request:
15+
branches:
16+
- master
17+
- maint/*
18+
19+
defaults:
20+
run:
21+
shell: bash
22+
23+
jobs:
24+
stable:
25+
# Check each OS, all supported Python, minimum versions and latest releases
26+
runs-on: ${{ matrix.os }}
27+
strategy:
28+
matrix:
29+
os: ['ubuntu-18.04']
30+
python-version: [3.6, 3.7, 3.8, 3.9]
31+
check: ['test']
32+
pip-flags: ['']
33+
depends: ['REQUIREMENTS']
34+
deb-depends: [false]
35+
nipype-extras: ['doc,tests,profiler']
36+
include:
37+
- os: ubuntu-18.04
38+
python-version: 3.8
39+
check: test
40+
pip-flags: ''
41+
depends: REQUIREMENTS
42+
deb-depends: true
43+
nipype-extras: doc,tests,nipy,profiler,duecredit,ssh
44+
env:
45+
DEPENDS: ${{ matrix.depends }}
46+
CHECK_TYPE: ${{ matrix.check }}
47+
EXTRA_PIP_FLAGS: ${{ matrix.pip-flags }}
48+
INSTALL_DEB_DEPENDENCIES: ${{ matrix.deb-depends }}
49+
NIPYPE_EXTRAS: ${{ matrix.nipype-extras }}
50+
INSTALL_TYPE: pip
51+
CI_SKIP_TEST: 1
52+
53+
steps:
54+
- uses: actions/checkout@v2
55+
with:
56+
submodules: recursive
57+
fetch-depth: 0
58+
- name: Set up Python ${{ matrix.python-version }}
59+
uses: actions/setup-python@v2
60+
with:
61+
python-version: ${{ matrix.python-version }}
62+
- name: Display Python version
63+
run: python -c "import sys; print(sys.version)"
64+
- name: Create virtual environment
65+
run: tools/ci/create_venv.sh
66+
- name: Build archive
67+
run: |
68+
source tools/ci/build_archive.sh
69+
echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
70+
- name: Install Debian dependencies
71+
run: tools/ci/install_deb_dependencies.sh
72+
if: ${{ matrix.os == 'ubuntu-18.04' }}
73+
- name: Install dependencies
74+
run: tools/ci/install_dependencies.sh
75+
- name: Install Nipype
76+
run: tools/ci/install.sh
77+
- name: Run tests
78+
run: tools/ci/check.sh
79+
if: ${{ matrix.check != 'skiptests' }}
80+
- uses: codecov/codecov-action@v1
81+
with:
82+
file: coverage.xml
83+
if: ${{ always() }}
84+
- name: Upload pytest test results
85+
uses: actions/upload-artifact@v2
86+
with:
87+
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
88+
path: test-results.xml
89+
if: ${{ always() && matrix.check == 'test' }}

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v2.0.0
5+
rev: v3.4.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
1010
- id: check-added-large-files
1111
- repo: https://github.com/psf/black
12-
rev: 19.3b0
12+
rev: 20.8b1
1313
hooks:
1414
- id: black

.travis.yml

-84
This file was deleted.

0 commit comments

Comments
 (0)