-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'edge' into chore-7.3.0-release-merge-back
- Loading branch information
Showing
1,449 changed files
with
955,982 additions
and
13,329 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# This workflow runs lint on pull requests that touch anything in the opentrons-ai-server directory | ||
|
||
name: 'ai-server lint' | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'opentrons-ai-server/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
lint: | ||
name: 'ai-server lint' | ||
timeout-minutes: 5 | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- name: Checkout opentrons repo | ||
uses: 'actions/checkout@v4' | ||
|
||
- name: Setup Python | ||
uses: 'actions/setup-python@v5' | ||
with: | ||
python-version: '3.12' | ||
cache: 'pipenv' | ||
cache-dependency-path: opentrons-ai-server/Pipfile.lock | ||
- name: Setup | ||
id: install | ||
working-directory: ./opentrons-ai-server | ||
run: make setup | ||
- name: black-check | ||
if: always() && steps.install.outcome == 'success' || steps.install.outcome == 'skipped' | ||
working-directory: ./opentrons-ai-server | ||
run: make black-check | ||
- name: ruff | ||
if: always() && steps.install.outcome == 'success' || steps.install.outcome == 'skipped' | ||
working-directory: ./opentrons-ai-server | ||
run: make ruff-check | ||
- name: mypy | ||
if: always() && steps.install.outcome == 'success' || steps.install.outcome == 'skipped' | ||
working-directory: ./opentrons-ai-server | ||
run: make mypy | ||
- name: unit tests | ||
if: always() && steps.install.outcome == 'success' || steps.install.outcome == 'skipped' | ||
working-directory: ./opentrons-ai-server | ||
run: make unit-test |
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
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
64 changes: 64 additions & 0 deletions
64
.github/workflows/opentrons-ai-client-dev-continuos-deploy.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: 'OpentronsAI edge continuous deployment to dev' | ||
|
||
on: | ||
push: | ||
branches: | ||
- edge | ||
paths: | ||
- 'opentrons-ai-client/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
js-unit-test: | ||
runs-on: 'ubuntu-22.04' | ||
permissions: | ||
id-token: write | ||
contents: read | ||
name: 'OpentronsAI edge continuous deployment to dev' | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: 'actions/checkout@v3' | ||
- uses: 'actions/setup-node@v3' | ||
with: | ||
node-version: '18.19.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: 'build' | ||
run: | | ||
make -C opentrons-ai-client build | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.DEV_AI_ROLE_ARN }} | ||
aws-region: ${{ secrets.DEV_AI_REGION }} | ||
- name: 'deploy to dev' | ||
run: | | ||
make -C opentrons-ai-client dev-deploy |
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
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
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
Oops, something went wrong.