Skip to content

Commit 4a9c109

Browse files
committed
touched up ci-cd
1 parent adf1518 commit 4a9c109

File tree

1 file changed

+4
-50
lines changed

1 file changed

+4
-50
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -140,53 +140,6 @@ jobs:
140140
name: VersionFile
141141
path: mrtrix3_version.txt
142142

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-
190143
test:
191144
needs: [generate]
192145
runs-on: ubuntu-latest
@@ -248,13 +201,15 @@ jobs:
248201
-e ./related-packages/fileformats
249202
-e ./related-packages/fileformats-extras
250203
-e '.[test]'
204+
- name: Install development Pydra
205+
run: pip install --no-deps git+https://github.com/nipype/pydra.git@new-syntax
251206
- name: Test with pytest
252207
run: pytest -sv pydra/tasks/mrtrix3 --cov pydra.tasks.mrtrix3 --cov-report xml
253208
- uses: codecov/codecov-action@v2
254209
if: ${{ always() }}
255210

256211
deploy-fileformats:
257-
needs: [devcheck, test]
212+
needs: [test]
258213
runs-on: ubuntu-latest
259214
steps:
260215
- uses: actions/checkout@v3
@@ -325,9 +280,8 @@ jobs:
325280
password: ${{ secrets.PYPI_FILEFORMATS_EXTRAS_API_TOKEN }}
326281
packages-dir: ./related-packages/fileformats-extras/dist
327282

328-
329283
deploy:
330-
needs: [devcheck, test, deploy-fileformats, deploy-fileformats-extras]
284+
needs: [test, deploy-fileformats, deploy-fileformats-extras]
331285
runs-on: ubuntu-latest
332286
steps:
333287
- name: Checkout repo

0 commit comments

Comments
 (0)