-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (55 loc) · 1.79 KB
/
run_emulation.yaml
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
68
69
name: 'Run opentrons-emulation'
on:
pull_request:
workflow_dispatch:
env:
ci: 1
jobs:
ot3-emulator:
runs-on: "ubuntu-20.04"
name: OT-3 Emulator
steps:
- name: Checkout opentrons-emulation repo
uses: actions/checkout@v3
with:
repository: Opentrons/opentrons-emulation
ref: v3.0.1
- name: Checkout ot3-firmware repo
uses: actions/checkout@v3
with:
path: ot3-firmware
- name: Setup Emulation
uses: Opentrons/[email protected]
with:
cache-break: ${{ github.event.inputs.cache-break }}
command: setup-python-only
- name: Substitute current sha into yaml
id: sub-step
uses: Opentrons/[email protected]
with:
command: yaml-sub
substitutions: >-
[
["otie", "source-location", "${{ github.sha }}"]
]
input-file: ${{ github.workspace }}/ot3-firmware/emulation_setups/ci/ot3_only.yaml
output-file-location: ${{ github.workspace }}/output.yaml
- name: Build Emulator
uses: Opentrons/[email protected]
with:
command: setup
input-file: ${{ github.workspace }}/output.yaml
- name: Run Emulation
uses: Opentrons/[email protected]
with:
command: run
input-file: ${{ github.workspace }}/output.yaml
- name: Give it some time to start up
run: sleep 10s
- name: Test Emulation
run: "curl --request GET --header 'opentrons-version: *' http://localhost:31950/modules"
- name: Teardown Emulation
uses: Opentrons/[email protected]
with:
input-file: ${{ github.workspace }}/output.yaml
command: teardown