forked from U-Alberta/ADaPT-ML
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (35 loc) · 1.24 KB
/
dp-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
# This is a workflow containing an automated test suite covering the core functionality of the software.
name: ADaPT-ML Data Programming 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'
# run: '& $Env:ProgramFiles\Docker\Docker\DockerCli.exe -SwitchDaemon'
- name: Pull a test Docker image
# run: docker run --rm busybox echo hello_world
run: docker run --help
- name: Build the docker-compose profile and test data programming
run: bash ./test/start-dp.sh
# - name: Give the database a chance to start up
# env:
# TIMER: ${{ matrix.timer }}
# run: $TIMER 30
#
# - name: Test data programming
# run: docker exec dp-mlflow sh -c ". ~/.bashrc && python /test/dp-test.py"