Skip to content
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 94 additions & 18 deletions .github/workflows/bom-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,110 @@
name: BOM Compatibility Tests
name: Compatibility BOM Tests

on:
workflow_dispatch:
inputs:
ml_ref:
description: 'luxonis-ml version (branch/tag/SHA)'
required: true
type: string
default: main
train_ref:
description: 'luxonis-train version (branch/tag/SHA)'
required: true
type: string
default: main
modelconv_ref:
description: 'modelconverter version (branch/tag/SHA)'
required: true
type: string
default: main
tools_ref:
description: 'luxonis-tools version (branch/tag/SHA)'
required: true
type: string
default: main
datadreamer_ref:
description: 'datadreamer version (branch/tag/SHA)'
required: true
type: string
default: main
run_train:
description: 'Run Luxonis Train tests'
required: false
type: boolean
default: true
run_modelconv:
description: 'Run Modelconverter tests'
required: false
type: boolean
default: true
run_tools:
description: 'Run Luxonis Tools tests'
required: false
type: boolean
default: true
run_datadreamer:
description: 'Run Datadreamer tests'
required: false
type: boolean
default: true

jobs:
checkout-train:
runs-on: ubuntu-latest
outputs:
repo-dir: ${{ steps.checkout.outputs.path }}
steps:
- name: Checkout luxonis-train
id: checkout
uses: actions/checkout@v3
with:
repository: Luxonis/luxonis-train
ref: ${{ inputs.train_ref }}
path: luxonis-train
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
test-luxonis-train:
needs: checkout-train
uses: ./luxonis-train/.github/workflows/tests.yaml
name: Test Luxonis Train
if: >-
(github.event_name == 'workflow_dispatch' && inputs.run_train) ||
(github.event_name == 'pull_request' &&
startsWith(github.head_ref, 'release/') &&
github.event.pull_request.base.ref == 'main')
uses: Luxonis/luxonis-train/.github/workflows/tests.yaml@main
with:
ml_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ml_ref || github.head_ref }}
train_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.train_ref || 'main' }}
secrets:
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test-modelconverter:
name: Test Modelconverter
if: >-
(github.event_name == 'workflow_dispatch' && inputs.run_modelconv) ||
(github.event_name == 'pull_request' &&
startsWith(github.head_ref, 'release/') &&
github.event.pull_request.base.ref == 'main')
uses: Luxonis/modelconverter/.github/workflows/unittests.yaml@main
with:
ml_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ml_ref || github.head_ref }}
modelconv_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.modelconv_ref || 'main' }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_ENDPOINT_URL: ${{ secrets.AWS_S3_ENDPOINT_URL }}
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
HUBAI_API_KEY: ${{ secrets.HUBAI_API_KEY }}

test-luxonis-tools:
name: Test Luxonis Tools
if: >-
(github.event_name == 'workflow_dispatch' && inputs.run_tools) ||
(github.event_name == 'pull_request' &&
startsWith(github.head_ref, 'release/') &&
github.event.pull_request.base.ref == 'main')
uses: Luxonis/tools/.github/workflows/unittests.yaml@main
with:
ml_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ml_ref || github.head_ref }}
tools_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tools_ref || 'main' }}

test-datadreamer:
name: Test Datadreamer
if: ${{ inputs.run_datadreamer }}
uses: Luxonis/datadreamer/.github/workflows/unit-tests.yaml@main
with:
ml_ref: ${{ inputs.ml_ref }}
secrets: inherit
ml_ref: ${{ inputs.ml_ref }}
datadreamer_ref: ${{ inputs.datadreamer_ref }}
Loading