forked from Project-MONAI/monai-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (55 loc) · 2.21 KB
/
test-monai-deploy-express.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# This is a basic workflow to help you get started with Actions
name: Test MONAI Deploy Express
on:
push:
paths:
- 'deploy/monai-deploy-express/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Controls when the workflow will run
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Start MONAI Deploy Express
working-directory: ./deploy/monai-deploy-express
run: |
./init.sh
docker compose up --wait
- name: Informatics Gateway Health Check
continue-on-error: true
run: |
curl http://localhost:5000/health
- name: Workflow Manager Health Check
continue-on-error: true
run: |
curl http://localhost:5001/health
- name: Task Manager Health Check
continue-on-error: true
run: |
curl http://localhost:5002/health
- name: Test Job
continue-on-error: false
run: |
sudo apt install dcmtk
storescu -v +r +sd -aec ORTHANC localhost 4242 "@sample-workflows/ci-test-files/*.dcm"
# curl -X POST http://localhost:8042/instances --data-binary @sample-workflows/ci-test-files/IMG0002.dcm
curl --request POST --header 'Content-Type: application/json' --data @sample-workflows/hello-world.json http://localhost:5001/workflows
- name: Collect Logs
working-directory: ./deploy/monai-deploy-express
continue-on-error: true
run: docker compose logs > logs.txt
- name: Stop MONAI Deploy Express
working-directory: ./deploy/monai-deploy-express
continue-on-error: true
run: docker compose down
- uses: actions/upload-artifact@v3
with:
name: logs
path: ./deploy/monai-deploy-express/logs.txt