-
Notifications
You must be signed in to change notification settings - Fork 16
61 lines (46 loc) · 1.59 KB
/
ci-build.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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Build and Test Images
#on:
# pull_request:
on:
push:
branches:
- '**'
jobs:
build-and-test-image:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Update submodules
run: git submodule update --init --recursive
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.19.x'
- name: Install jq
run: sudo apt install -y jq
- name: Install make
run: sudo apt install make
- name: Install wheel
run: pip install wheel
- name: Build encrypted filesystem artifacta, contract ledger client & depa-training container
run: ci/build.sh
- name: Build container images
run: cd ${{ github.workspace }}/scenarios/covid && ./ci/build.sh
- name: Run pre-processing
run: cd ./scenarios/covid/deployment/docker && ./preprocess.sh
- name: Run model saving
run: cd ./scenarios/covid/deployment/docker && ./save-model.sh
- name: Run training
run: cd ./scenarios/covid/deployment/docker && ./train.sh