Skip to content

Commit 572211e

Browse files
committed
tmpdir
Signed-off-by: Jirka <[email protected]>
1 parent 94dcbe5 commit 572211e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/pythonapp.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,15 @@ jobs:
245245
python setup.py check -m -s
246246
python setup.py sdist bdist_wheel
247247
python -m twine check dist/*
248+
- name: Make Temp dir
249+
run: echo "::set-output name=tmp_dir::$(mktemp -d)"
250+
id: mktemp
248251
- name: Move packages
249252
run: |
250253
# move packages to a temp dir
251-
tmp_dir=$(mktemp -d)
252-
cp dist/monai* "$tmp_dir"
254+
cp dist/monai* "${{ steps.mktemp.outputs.tmp_dir }}"
253255
rm -r build dist monai.egg-info
254-
cd "$tmp_dir"
256+
cd "${{ steps.mktemp.outputs.tmp_dir }}"
255257
ls -al
256258
- name: Install wheel file
257259
run: |
@@ -272,8 +274,8 @@ jobs:
272274
- name: Quick test
273275
run: |
274276
# run min tests
275-
cp $root_dir/requirements*.txt "$tmp_dir"
276-
cp -r $root_dir/tests "$tmp_dir"
277+
cp $root_dir/requirements*.txt "${{ steps.mktemp.outputs.tmp_dir }}"
278+
cp -r $root_dir/tests "${{ steps.mktemp.outputs.tmp_dir }}"
277279
pwd
278280
ls -al
279281
python -m pip install -r requirements-dev.txt

0 commit comments

Comments
 (0)