Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create GHA to test app end-to-end using monai-deploy exec #38

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/md_exec_end_to_end.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Workflow to test running TotalSegmentator-AIDE app outside a MAP using monai-deploy exec

name: monai-deploy exec End-to-end

on:
pull_request:

jobs:
md-exec-end-to-end:
name: monai-deploy exec End-to-end

runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.9' ]

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3

- name: Build dcm2niix
run: |
# build from source: https://github.com/rordenlab/dcm2niix#build-from-source
sudo apt-get install cmake pkg-config
git clone https://github.com/rordenlab/dcm2niix.git --branch master --single-branch
cd dcm2niix
mkdir build && cd build
cmake ..
# sudo required for make install into /usr/local/bin
sudo make install

- name: Test dcm2niix install
run: |
dcm2niix -h

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Display installed pip packages
run: |
pip list

- name: Run monai-deploy exec
run: |
mkdir output
monai-deploy exec app -i tests/data/dcm2nii/dcm/ -o output/
Loading