feat(shared-data, api, hardware-testing): add the p200_96 #1433
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
# Run tests, build the app, and deploy it cross platform | |
name: 'OpentronsAI client test, build, and deploy' | |
# ToDo (kk:04/16/2024) Add build and deploy task | |
on: | |
push: | |
paths: | |
- 'Makefile' | |
- 'opentrons-ai-client/**/*' | |
- 'components/**' | |
- 'shared-data/**' | |
- '.github/workflows/opentrons-ai-client-test.yml' | |
branches: | |
- '**' | |
tags: | |
- 'v*' | |
- 'ot3@*' | |
pull_request: | |
paths: | |
- 'Makefile' | |
- 'opentrons-ai-client/**/*' | |
- 'components/**' | |
- 'shared-data/**' | |
- '.github/workflows/opentrons-ai-client-test.yml' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.ref_name != 'edge' || github.run_id}}-${{ github.ref_type != 'tag' || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CI: true | |
jobs: | |
js-unit-test: | |
runs-on: 'ubuntu-22.04' | |
name: 'opentrons ai frontend unit tests' | |
timeout-minutes: 60 | |
steps: | |
- uses: 'actions/checkout@v4' | |
- uses: 'actions/setup-node@v4' | |
with: | |
node-version: '22.11.0' | |
- name: 'install udev' | |
run: | | |
# WORKAROUND: Remove microsoft debian repo due to https://github.com/microsoft/linux-package-repositories/issues/130. Remove line below after it is resolved | |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list | |
sudo apt-get update && sudo apt-get install libudev-dev | |
- name: 'set complex environment variables' | |
id: 'set-vars' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const { buildComplexEnvVars } = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/utils.js`) | |
buildComplexEnvVars(core, context) | |
- name: 'cache yarn cache' | |
uses: actions/cache@v3 | |
with: | |
path: | | |
${{ github.workspace }}/.npm-cache/_prebuild | |
${{ github.workspace }}/.yarn-cache | |
key: js-${{ secrets.GH_CACHE_VERSION }}-${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | |
- name: 'setup-js' | |
run: | | |
npm config set cache ${{ github.workspace }}/.npm-cache | |
yarn config set cache-folder ${{ github.workspace }}/.yarn-cache | |
make setup-js | |
- name: 'test frontend packages' | |
run: | | |
make -C opentrons-ai-client test-cov | |
- name: 'Upload coverage report' | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage/lcov.info | |
flags: opentrons-ai-client |