forked from U-Alberta/ADaPT-ML
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (37 loc) · 1.51 KB
/
deploy-test.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
# This is a workflow containing an automated test suite covering the core functionality of the software.
name: ADaPT-ML Model Deployment CI for Linux, Mac, and Windows
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-2022 ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: If this is the MacOS runner, install Docker
if: matrix.os == 'macos-latest'
run: bash ./test/install-docker.sh
- name: If this is the Windows runner, switch Docker daemons
if: matrix.os == 'windows-2022'
shell: pwsh
run: '& .\test\switch-daemons.ps1'
- name: Build the docker-compose profile and test deployment
run: bash ./test/start-deploy.sh
# - name: Give the database a chance to start up
# shell: bash
# run: sleep 30
#
# - name: Test deployment
# run: |
# docker network create test-deploy-network --subnet 192.168.2.0/24 --gateway 192.168.2.10 \
# docker network connect --ip 192.168.2.4 test-deploy-network modelling-mlflow-deploy \
# docker network connect --ip 192.168.2.8 test-deploy-network modelling-mlflow \
# docker exec modelling-mlflow sh -c ". ~/.bashrc && python /test/deploy-test.py" \
# docker network disconnect test-deploy-network modelling-mlflow-deploy \
# docker network disconnect test-deploy-network modelling-mlflow \
# docker network rm test-deploy-network