99
99
100
100
- name : Install task package
101
101
run : |
102
- pip install ${{ matrix.pip-flags }} "./related-packages/fileformats[dev]"
103
- pip install ${{ matrix.pip-flags }} "related-packages/fileformats-extras[dev]"
104
102
pip install ${{ matrix.pip-flags }} ".[dev]"
105
103
python -c "import pydra.tasks.ants as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
106
104
python -c "import pydra as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
107
- python -c "import fileformats.medimage_ants as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
108
- python -c "import fileformats.extras.medimage_ants as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
109
105
110
106
test :
111
107
needs : [nipype-conv]
@@ -185,19 +181,15 @@ jobs:
185
181
186
182
- name : Install task package
187
183
run : |
188
- pip install "./related-packages/fileformats" "./related-packages/fileformats-extras" ". [test]"
184
+ pip install ".[test]"
189
185
python -c "import pydra.tasks.ants as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
190
186
python -c "import pydra as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
191
187
192
188
- name : Test with pytest
193
189
run : >-
194
190
pytest -sv
195
191
./pydra/tasks/ants
196
- ./related-packages/fileformats
197
- ./related-packages/fileformats-extras
198
192
--cov pydra.tasks.ants
199
- --cov fileformats.medimage_ants
200
- --cov fileformats.extras.medimage_ants
201
193
--cov-report xml
202
194
203
195
- name : Upload to CodeCov
@@ -207,87 +199,8 @@ jobs:
207
199
files : coverage.xml
208
200
name : pydra-ants
209
201
210
-
211
- deploy-fileformats :
212
- needs : [devcheck, test]
213
- runs-on : ubuntu-latest
214
- steps :
215
-
216
- - uses : actions/checkout@v4
217
- with :
218
- submodules : recursive
219
- fetch-depth : 0
220
-
221
- - name : Set up Python
222
- uses : actions/setup-python@v5
223
- with :
224
- python-version : ' 3.11'
225
-
226
- - name : Install build tools
227
- run : python -m pip install build twine
228
-
229
- - name : Build source and wheel distributions
230
- run : python -m build ./related-packages/fileformats
231
-
232
- - name : Check distributions
233
- run : twine check ./related-packages/fileformats/dist/*
234
-
235
- - name : Check for PyPI token on tag
236
- id : deployable
237
- if : github.event_name == 'release' || github.event_name == 'repository_dispatch'
238
- env :
239
- PYPI_API_TOKEN : " ${{ secrets.PYPI_FILEFORMATS_API_TOKEN }}"
240
- run : if [ -n "$PYPI_API_TOKEN" ]; then echo "DEPLOY=true" >> $GITHUB_OUTPUT; fi
241
-
242
- - name : Upload to PyPI
243
- if : steps.deployable.outputs.DEPLOY
244
- uses : pypa/gh-action-pypi-publish@release/v1
245
- with :
246
- user : __token__
247
- password : ${{ secrets.PYPI_FILEFORMATS_API_TOKEN }}
248
- packages-dir : ./related-packages/fileformats/dist
249
-
250
- deploy-fileformats-extras :
251
- needs : [deploy-fileformats]
252
- runs-on : ubuntu-latest
253
- steps :
254
-
255
- - uses : actions/checkout@v4
256
- with :
257
- submodules : recursive
258
- fetch-depth : 0
259
-
260
- - name : Set up Python
261
- uses : actions/setup-python@v5
262
- with :
263
- python-version : ' 3.11'
264
-
265
- - name : Install build tools
266
- run : python -m pip install build twine
267
-
268
- - name : Build source and wheel distributions
269
- run : python -m build ./related-packages/fileformats-extras
270
-
271
- - name : Check distributions
272
- run : twine check ./related-packages/fileformats-extras/dist/*
273
-
274
- - name : Check for PyPI token on tag
275
- id : deployable
276
- if : github.event_name == 'release' || github.event_name == 'repository_dispatch'
277
- env :
278
- PYPI_API_TOKEN : " ${{ secrets.PYPI_FILEFORMATS_EXTRAS_API_TOKEN }}"
279
- run : if [ -n "$PYPI_API_TOKEN" ]; then echo "DEPLOY=true" >> $GITHUB_OUTPUT; fi
280
-
281
- - name : Upload to PyPI
282
- if : steps.deployable.outputs.DEPLOY
283
- uses : pypa/gh-action-pypi-publish@release/v1
284
- with :
285
- user : __token__
286
- password : ${{ secrets.PYPI_FILEFORMATS_EXTRAS_API_TOKEN }}
287
- packages-dir : ./related-packages/fileformats-extras/dist
288
-
289
202
deploy :
290
- needs : [nipype-conv, test, deploy-fileformats, deploy-fileformats-extras ]
203
+ needs : [nipype-conv, test]
291
204
runs-on : ubuntu-latest
292
205
steps :
293
206
0 commit comments