@@ -140,53 +140,6 @@ jobs:
140
140
name : VersionFile
141
141
path : mrtrix3_version.txt
142
142
143
- devcheck :
144
- needs : [generate]
145
- runs-on : ubuntu-latest
146
- strategy :
147
- matrix :
148
- python-version : [3.8, 3.11] # Check oldest and newest versions
149
- pip-flags : ['', '--editable']
150
- pydra :
151
- - ' pydra'
152
- - ' --editable git+https://github.com/nipype/pydra.git#egg=pydra'
153
-
154
- steps :
155
- - uses : actions/checkout@v2
156
- - name : Download version file
157
- uses : actions/download-artifact@v4
158
- with :
159
- name : VersionFile
160
- path : mrtrix3_version.txt
161
- - name : Extract Mrtrix version
162
- run : echo "MRTRIX_VERSION=$(cat mrtrix3_version.txt)" >> $GITHUB_ENV
163
- - name : Download auto-gen pydra
164
- uses : actions/download-artifact@v4
165
- with :
166
- name : AutoGen
167
- path : pydra/tasks/mrtrix3/${{ env.SUBPKG_NAME }}
168
- - name : Strip auto package from gitignore so it is included in package
169
- run : |
170
- sed -i '/\/pydra\/tasks\/mrtrix3\/${{ env.SUBPKG_NAME }}/d' .gitignore
171
- - name : Set up Python ${{ matrix.python-version }}
172
- uses : actions/setup-python@v2
173
- with :
174
- python-version : ${{ matrix.python-version }}
175
- - name : Install build dependencies
176
- run : |
177
- python -m pip install --upgrade pip
178
- - name : Install Pydra
179
- run : |
180
- pip install ${{ matrix.pydra }}
181
- python -c "import pydra as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
182
- - name : Install task package
183
- run : |
184
- pip install ${{ matrix.pip-flags }} "related-packages/fileformats"
185
- pip install ${{ matrix.pip-flags }} ".[dev]"
186
- python -c "import pydra.tasks.mrtrix3 as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
187
- python -c "import pydra.tasks.mrtrix3.$SUBPKG_NAME"
188
- python -c "import pydra as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
189
-
190
143
test :
191
144
needs : [generate]
192
145
runs-on : ubuntu-latest
@@ -248,13 +201,15 @@ jobs:
248
201
-e ./related-packages/fileformats
249
202
-e ./related-packages/fileformats-extras
250
203
-e '.[test]'
204
+ - name : Install development Pydra
205
+ run : pip install --no-deps git+https://github.com/nipype/pydra.git@new-syntax
251
206
- name : Test with pytest
252
207
run : pytest -sv pydra/tasks/mrtrix3 --cov pydra.tasks.mrtrix3 --cov-report xml
253
208
- uses : codecov/codecov-action@v2
254
209
if : ${{ always() }}
255
210
256
211
deploy-fileformats :
257
- needs : [devcheck, test]
212
+ needs : [test]
258
213
runs-on : ubuntu-latest
259
214
steps :
260
215
- uses : actions/checkout@v3
@@ -325,9 +280,8 @@ jobs:
325
280
password : ${{ secrets.PYPI_FILEFORMATS_EXTRAS_API_TOKEN }}
326
281
packages-dir : ./related-packages/fileformats-extras/dist
327
282
328
-
329
283
deploy :
330
- needs : [devcheck, test, deploy-fileformats, deploy-fileformats-extras]
284
+ needs : [test, deploy-fileformats, deploy-fileformats-extras]
331
285
runs-on : ubuntu-latest
332
286
steps :
333
287
- name : Checkout repo
0 commit comments