Skip to content

Commit 679bb86

Browse files
committed
split CI package
1 parent 67aa4cf commit 679bb86

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/pythonapp.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ jobs:
202202

203203
packaging:
204204
runs-on: ubuntu-latest
205+
env:
206+
QUICKTEST: True
207+
shell: bash
205208
steps:
206209
- uses: actions/checkout@v2
207210
with:
@@ -229,7 +232,7 @@ jobs:
229232
# however, "pip install monai*.tar.gz" will build cpp/cuda with an isolated
230233
# fresh torch installation according to pyproject.toml
231234
python -m pip install torch>=1.5 torchvision
232-
- name: Test source archive and wheel file
235+
- name: Check packages
233236
run: |
234237
pip uninstall monai
235238
pip list | grep -iv monai
@@ -242,38 +245,39 @@ jobs:
242245
python setup.py check -m -s
243246
python setup.py sdist bdist_wheel
244247
python -m twine check dist/*
245-
248+
- name: Move packages
249+
run: |
246250
# move packages to a temp dir
247251
tmp_dir=$(mktemp -d)
248252
cp dist/monai* "$tmp_dir"
249253
rm -r build dist monai.egg-info
250254
cd "$tmp_dir"
251255
ls -al
252-
256+
- name: Install wheel file
257+
run: |
253258
# install from wheel
254259
python -m pip install monai*.whl
255260
python -c 'import monai; monai.config.print_config()' 2>&1 | grep -iv "unknown"
256261
python -c 'import monai; print(monai.__file__)'
257262
python -m pip uninstall -y monai
258263
rm monai*.whl
259-
264+
- name: Install source archive
265+
run: |
260266
# install from tar.gz
261267
name=$(ls *.tar.gz | head -n1)
262268
echo $name
263269
python -m pip install $name[all]
264270
python -c 'import monai; monai.config.print_config()' 2>&1 | grep -iv "unknown"
265271
python -c 'import monai; print(monai.__file__)'
266-
272+
- name: Quick test
273+
run: |
267274
# run min tests
268275
cp $root_dir/requirements*.txt "$tmp_dir"
269276
cp -r $root_dir/tests "$tmp_dir"
270277
pwd
271278
ls -al
272279
python -m pip install -r requirements-dev.txt
273280
python -m unittest -v
274-
env:
275-
QUICKTEST: True
276-
shell: bash
277281
278282
build-docs:
279283
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)