Skip to content

Commit 5b12df1

Browse files
committed
Test the hello world workflow
Signed-off-by: Victor Chang <[email protected]>
1 parent 0e078a8 commit 5b12df1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/test-monai-deploy-express.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2323
- uses: actions/checkout@v3
2424

25+
- name: Install dcmtk
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y dcmtk
29+
2530
- name: Start MONAI Deploy Express
2631
working-directory: ./deploy/monai-deploy-express
2732
run: |
@@ -48,6 +53,23 @@ jobs:
4853
continue-on-error: true
4954
run: docker compose logs > logs.txt
5055

56+
- name: Run Hello World Workflow
57+
working-directory: ./deploy/monai-deploy-express
58+
run: |
59+
curl --request POST --header 'Content-Type: application/json' --data "@sample-workflows/hello-world.json" http://localhost:5001/workflows
60+
61+
- name: Download and Send Sample DICOM Data
62+
run: |
63+
curl -L -o sample.dcm "https://github.com/fo-dicom/fo-dicom/raw/refs/heads/development/Tests/FO-DICOM.Tests/Test%20Data/GH1146.dcm"
64+
storescu -v -aet ORTHANC -aec MONAI-DEPLOY localhost 104 sample.dcm
65+
sleep 10
66+
67+
- name: Verify Hello World Workflow Output
68+
run: |
69+
CONTAINER_ID=$(docker container list -a -n 1 -q)
70+
test 2 -eq $(docker logs $CONTAINER_ID | grep "1.3.6.1.4.1.23438.1.1.1.dcm") | wc -l)
71+
test 1 -eq $(docker logs $CONTAINER_ID | grep "1.3.6.1.4.1.23438.1.1.1.dcm.json") | wc -l)
72+
5173
- name: Stop MONAI Deploy Express
5274
working-directory: ./deploy/monai-deploy-express
5375
continue-on-error: true

0 commit comments

Comments
 (0)