chore(state-manager): update state manager python version & update dependencies #4073
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |