-
Notifications
You must be signed in to change notification settings - Fork 179
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 HEPAUV-AUTO-24.06.06
- Loading branch information
Showing
5,436 changed files
with
2,077,153 additions
and
180,363 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
ignore: | ||
- '**/node_modules' | ||
- 'protocol-library-kludge' | ||
- 'webpack-config' | ||
- 'hardware-testing' | ||
- '**/*.md' | ||
|
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
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 |
---|---|---|
|
@@ -14,6 +14,8 @@ runs: | |
- shell: bash | ||
run: | | ||
if [[ "${OSTYPE}" =~ "linux" ]]; then | ||
# 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 -y --no-install-recommends libsystemd-dev | ||
fi | ||
|
@@ -25,8 +27,10 @@ runs: | |
if: ${{ inputs.python-version != 'false' }} | ||
run: echo "OT_VIRTUALENV_VERSION=${{ inputs.python-version }}" >> $GITHUB_ENV | ||
- shell: bash | ||
run: | | ||
npm install --global [email protected] | ||
$OT_PYTHON -m pip install pipenv==2021.5.29 | ||
run: npm install --global [email protected] | ||
- shell: bash | ||
run: $OT_PYTHON -m pip install --upgrade pip | ||
- shell: bash | ||
run: $OT_PYTHON -m pip install --user pipenv==2023.12.1 | ||
- shell: bash | ||
run: 'make -C ${{ inputs.project }} setup' | ||
run: 'make -C ${{ inputs.project }} setup || make -C ${{ inputs.project }} setup' |
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,59 @@ | ||
# This workflow runs test and lint on branch pushes that touch the abr-testing | ||
# project or its dependencies. | ||
|
||
name: 'abr-testing lint/test' | ||
on: | ||
push: | ||
paths: | ||
- 'Makefile' | ||
- 'abr-testing/**' | ||
- 'scripts/**/*.mk' | ||
- 'scripts/**/*.py' | ||
- '.github/workflows/abr-testing-lint-test.yaml' | ||
- '.github/actions/python/**' | ||
branches: | ||
- 'edge' | ||
tags-ignore: | ||
- '*' | ||
pull_request: | ||
paths: | ||
- 'abr-testing/**' | ||
- 'scripts/**/*.mk' | ||
- 'scripts/**/*.py' | ||
- '.github/workflows/abr-testing-lint-test.yaml' | ||
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 | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
lint-test: | ||
runs-on: 'windows-latest' | ||
steps: | ||
- name: Checkout opentrons repo | ||
uses: 'actions/checkout@v3' | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node | ||
uses: 'actions/setup-node@v3' | ||
with: | ||
node-version: '12' | ||
- name: Setup Python | ||
uses: 'actions/setup-python@v4' | ||
with: | ||
python-version: '3.10' | ||
- name: Set up abr-testing project | ||
uses: './.github/actions/python/setup' | ||
with: | ||
project: 'abr-testing' | ||
- name: lint | ||
run: | ||
make -C abr-testing lint | ||
- name: test | ||
run: | ||
make -C abr-testing 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Analyses Snapshot Test | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
TARGET: | ||
description: 'Target branch or tag' | ||
required: true | ||
default: 'edge' | ||
TEST_SOURCE: | ||
description: 'Target for the test code' | ||
required: true | ||
default: 'edge' | ||
schedule: | ||
- cron: '26 7 * * *' # 7:26 AM UTC | ||
|
||
jobs: | ||
build-and-test: | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
env: | ||
TARGET: ${{ github.event.inputs.TARGET || 'edge' }} | ||
TEST_SOURCE: ${{ github.event.inputs.TEST_SOURCE || 'edge' }} | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ env.TEST_SOURCE }} | ||
|
||
- name: Docker Build | ||
working-directory: app-testing | ||
run: make build-opentrons-analysis | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: 'pipenv' | ||
cache-dependency-path: app-testing/Pipfile.lock | ||
|
||
- name: Setup Python Dependencies | ||
working-directory: app-testing | ||
run: make setup | ||
|
||
- name: Run Test | ||
id: run_test | ||
working-directory: app-testing | ||
run: make snapshot-test | ||
|
||
- name: Upload Report | ||
if: '!cancelled()' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-report | ||
path: app-testing/results/ | ||
|
||
- name: Handle Test Failure | ||
if: failure() | ||
working-directory: app-testing | ||
run: make snapshot-test-update | ||
|
||
- name: Create Snapshot update Request | ||
if: failure() | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: 'fix(app-testing): snapshot failure capture' | ||
title: 'fix(app-testing): snapshot failure capture' | ||
body: 'This PR is an automated snapshot update request. Please review the changes and merge if they are acceptable or find you bug and fix it.' | ||
branch: 'app-testing/${{ env.TARGET }}-from-${{ env.TEST_SOURCE}}' | ||
base: ${{ env.TEST_SOURCE}} | ||
|
Oops, something went wrong.