Skip to content

Commit a27538b

Browse files
committed
wip: use new data repository, install conda and nitransforms
1 parent 81181ed commit a27538b

File tree

1 file changed

+14
-118
lines changed

1 file changed

+14
-118
lines changed

.github/workflows/travis.yml

Lines changed: 14 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -4,74 +4,16 @@ on: [push, pull_request]
44

55
jobs:
66
build-linux:
7-
if: "!contains(github.event.head_commit.message, '[skip ci]' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'nipreps/sdcflows'))"
7+
if: "!contains(github.event.head_commit.message, '[skip ci]' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'poldracklab/nitransforms'))"
88
runs-on: ubuntu-latest
99
env:
10-
TEST_DATA_HOME: /home/runner/sdcflows-tests
11-
FSLDIR: /usr/share/fsl/5.0
12-
FSLOUTPUTTYPE: NIFTI_GZ
13-
FSLMULTIFILEQUIT: TRUE
14-
POSSUMDIR: /usr/share/fsl/5.0
15-
FSLTCLSH: /usr/bin/tclsh
16-
FSLWISH: /usr/bin/wish
17-
AFNI_HOME: /opt/afni
18-
AFNI_MODELPATH: /opt/afni/models
19-
AFNI_IMSAVE_WARNINGS: NO
20-
AFNI_TTATLAS_DATASET: /opt/afni/atlases
21-
AFNI_PLUGINPATH: /opt/afni/plugins
22-
ANTSPATH: /opt/ants
10+
TEST_DATA_HOME: /home/runner/testdata/nitransforms-tests
2311
strategy:
2412
max-parallel: 5
2513
matrix:
2614
python-version: [3.7, 3.8, 3.9]
2715

2816
steps:
29-
- uses: actions/cache@v2
30-
with:
31-
path: /var/lib/apt
32-
key: apt-cache-v2
33-
restore-keys: |
34-
apt-cache-v2
35-
- name: Install dependencies
36-
run: |
37-
sudo apt-get update
38-
sudo apt-get install -y --no-install-recommends \
39-
curl bzip2 ca-certificates \
40-
tcsh gsl-bin netpbm \
41-
libjpeg62 xvfb xterm \
42-
libglu1-mesa-dev libglw1-mesa \
43-
libxm4 build-essential
44-
45-
- name: Install FSL
46-
run: |
47-
sudo apt-get install -y --no-install-recommends fsl
48-
49-
- uses: actions/cache@v2
50-
with:
51-
path: /opt/afni
52-
key: afni-v1
53-
restore-keys: |
54-
afni-v1
55-
- name: Install AFNI
56-
run: |
57-
if [[ ! -d "${AFNI_HOME}" ]]; then
58-
curl -O https://afni.nimh.nih.gov/pub/dist/bin/misc/@update.afni.binaries && \
59-
tcsh @update.afni.binaries -package linux_ubuntu_16_64 -bindir ${AFNI_HOME}
60-
fi
61-
62-
- uses: actions/cache@v2
63-
with:
64-
path: /opt/ants
65-
key: ants-v1
66-
restore-keys: |
67-
ants-v1
68-
- name: Install ANTS
69-
run: |
70-
if [[ ! -d "${ANTSPATH}" ]]; then
71-
sudo mkdir -p $ANTSPATH
72-
curl -sSL "https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_64-v2.3.4.tar.gz" | sudo tar -xzC $ANTSPATH --strip-components 1
73-
fi
74-
7517
- name: Git settings (pacify DataLad)
7618
run: |
7719
git config --global user.name 'NiPreps Bot'
@@ -86,29 +28,13 @@ jobs:
8628
path: |
8729
/usr/share/miniconda/pkgs
8830
/home/runner/.cache/pip
89-
key: python-${{ matrix.python-version }}-v2
31+
key: python-${{ matrix.python-version }}-v1
9032
restore-keys: |
9133
python-${{ matrix.python-version }}-
9234
- name: Install DataLad
9335
run: |
94-
$CONDA/bin/conda install -c conda-forge git-annex datalad pip
36+
$CONDA/bin/conda install -c conda-forge git-annex datalad pip codecov
9537
$CONDA/bin/pip install datalad-osf
96-
- uses: actions/checkout@v2
97-
- name: Install minimal dependencies
98-
run: |
99-
$CONDA/bin/pip install -r min-requirements.txt
100-
$CONDA/bin/pip install .[tests]
101-
102-
103-
- uses: actions/cache@v2
104-
with:
105-
path: ~/.cache/templateflow
106-
key: tf-cache-v1
107-
restore-keys: |
108-
tf-cache-
109-
- name: Get TemplateFlow's required objects
110-
run: |
111-
$CONDA/bin/python tools/cache_templateflow.py
11238
11339
- uses: actions/cache@v2
11440
with:
@@ -119,51 +45,21 @@ jobs:
11945
- name: Install test data
12046
run: |
12147
export PATH=$CONDA/bin:$PATH
122-
mkdir -p ${{ env.TEST_DATA_HOME }}
123-
cd ${{ env.TEST_DATA_HOME }}
48+
mkdir -p /home/runner/testdata
49+
cd /home/runner/testdata
12450
125-
# ds001600
126-
datalad install -r https://github.com/nipreps-data/ds001600.git
127-
datalad update -r --merge -d ds001600/
128-
datalad get -r -d ds001600/ ds001600/sub-1/
51+
datalad install -r https://github.com/nipreps-data/nitransforms-tests.git
52+
datalad update -r --merge -d nitransforms-tests/
53+
datalad get -r -d nitransforms-tests/
12954
130-
# HCP/sub-101006
131-
datalad install -r https://github.com/nipreps-data/HCP101006.git
132-
datalad update -r --merge -d HCP101006/
133-
datalad get -r -d HCP101006
134-
135-
# ds001771
136-
datalad install -r https://github.com/nipreps-data/ds001771.git
137-
datalad update -r --merge -d ds001771/
138-
datalad get -r -d ds001771/ ds001771/sub-36/*
139-
datalad get -r -d ds001771/derivatives ds001771/derivatives/openneuro/sub-36/*
140-
141-
# ds000054
142-
datalad install -r https://github.com/nipreps-data/ds000054.git
143-
datalad update --merge -d ds000054/
144-
datalad get -r -d ds000054/ ds000054/sub-100185/*
145-
146-
# ds000206
147-
datalad install -r https://github.com/nipreps-data/ds000206.git
148-
datalad update -r --merge -d ds000206/
149-
datalad get -r -d ds000206/ ds000206/sub-05/
150-
151-
- name: Install FreeSurfer's mri_robust_template
152-
env:
153-
MRI_ROBUST_TEMPLATE: sx2n7/providers/osfstorage/5e825301d0e35400ebb481f2
55+
- uses: actions/checkout@v2
56+
- name: Install minimal dependencies
15457
run: |
155-
curl https://files.osf.io/v1/resources/$MRI_ROBUST_TEMPLATE?direct > mri_robust_template
156-
sudo install mri_robust_template /usr/local/bin
157-
mkdir -p $HOME/.cache/freesurfer/
158-
echo "b2VzdGViYW5Ac3RhbmZvcmQuZWR1CjMwNzU2CiAqQ1MzYkJ5VXMxdTVNCiBGU2kvUGJsejJxR1V3Cg==" | base64 -d > $HOME/.cache/freesurfer/license.txt
159-
160-
- name: Run pytest with coverage
58+
$CONDA/bin/pip install .[tests]
59+
- name: Run pytest
16160
run: |
162-
export LD_LIBRARY_PATH=/usr/lib/fsl/5.0:$LD_LIBRARY_PATH
163-
export PATH=$ANTSPATH:${AFNI_HOME}:/usr/lib/fsl/5.0:$PATH
164-
$CONDA/bin/pytest -v --cov sdcflows --cov-report xml:cov.xml --doctest-modules sdcflows
61+
$CONDA/bin/pytest -v --cov nitransforms --cov-config .coveragerc --cov-report xml:cov.xml --doctest-modules nitransforms/
16562
16663
- name: Submit code coverage
16764
run: |
168-
$CONDA/bin/conda install codecov
16965
$CONDA/bin/python -m codecov --flags travis --file cov.xml -e $GITHUB_RUN_NUMBER

0 commit comments

Comments
 (0)