Skip to content

Commit b74cdbc

Browse files
authored
Bom Tests (#319)
1 parent df68b55 commit b74cdbc

File tree

1 file changed

+94
-18
lines changed

1 file changed

+94
-18
lines changed

.github/workflows/bom-tests.yaml

Lines changed: 94 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,110 @@
1-
name: BOM Compatibility Tests
1+
name: Compatibility BOM Tests
22

33
on:
44
workflow_dispatch:
55
inputs:
66
ml_ref:
77
description: 'luxonis-ml version (branch/tag/SHA)'
88
required: true
9+
type: string
910
default: main
1011
train_ref:
1112
description: 'luxonis-train version (branch/tag/SHA)'
1213
required: true
14+
type: string
1315
default: main
16+
modelconv_ref:
17+
description: 'modelconverter version (branch/tag/SHA)'
18+
required: true
19+
type: string
20+
default: main
21+
tools_ref:
22+
description: 'luxonis-tools version (branch/tag/SHA)'
23+
required: true
24+
type: string
25+
default: main
26+
datadreamer_ref:
27+
description: 'datadreamer version (branch/tag/SHA)'
28+
required: true
29+
type: string
30+
default: main
31+
run_train:
32+
description: 'Run Luxonis Train tests'
33+
required: false
34+
type: boolean
35+
default: true
36+
run_modelconv:
37+
description: 'Run Modelconverter tests'
38+
required: false
39+
type: boolean
40+
default: true
41+
run_tools:
42+
description: 'Run Luxonis Tools tests'
43+
required: false
44+
type: boolean
45+
default: true
46+
run_datadreamer:
47+
description: 'Run Datadreamer tests'
48+
required: false
49+
type: boolean
50+
default: true
1451

15-
jobs:
16-
checkout-train:
17-
runs-on: ubuntu-latest
18-
outputs:
19-
repo-dir: ${{ steps.checkout.outputs.path }}
20-
steps:
21-
- name: Checkout luxonis-train
22-
id: checkout
23-
uses: actions/checkout@v3
24-
with:
25-
repository: Luxonis/luxonis-train
26-
ref: ${{ inputs.train_ref }}
27-
path: luxonis-train
52+
pull_request:
53+
types:
54+
- opened
55+
- synchronize
56+
- reopened
2857

58+
jobs:
2959
test-luxonis-train:
30-
needs: checkout-train
31-
uses: ./luxonis-train/.github/workflows/tests.yaml
60+
name: Test Luxonis Train
61+
if: >-
62+
(github.event_name == 'workflow_dispatch' && inputs.run_train) ||
63+
(github.event_name == 'pull_request' &&
64+
startsWith(github.head_ref, 'release/') &&
65+
github.event.pull_request.base.ref == 'main')
66+
uses: Luxonis/luxonis-train/.github/workflows/tests.yaml@main
67+
with:
68+
ml_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ml_ref || github.head_ref }}
69+
train_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.train_ref || 'main' }}
70+
secrets:
71+
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
72+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
73+
74+
test-modelconverter:
75+
name: Test Modelconverter
76+
if: >-
77+
(github.event_name == 'workflow_dispatch' && inputs.run_modelconv) ||
78+
(github.event_name == 'pull_request' &&
79+
startsWith(github.head_ref, 'release/') &&
80+
github.event.pull_request.base.ref == 'main')
81+
uses: Luxonis/modelconverter/.github/workflows/unittests.yaml@main
82+
with:
83+
ml_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ml_ref || github.head_ref }}
84+
modelconv_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.modelconv_ref || 'main' }}
85+
secrets:
86+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
87+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
88+
AWS_S3_ENDPOINT_URL: ${{ secrets.AWS_S3_ENDPOINT_URL }}
89+
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
90+
HUBAI_API_KEY: ${{ secrets.HUBAI_API_KEY }}
91+
92+
test-luxonis-tools:
93+
name: Test Luxonis Tools
94+
if: >-
95+
(github.event_name == 'workflow_dispatch' && inputs.run_tools) ||
96+
(github.event_name == 'pull_request' &&
97+
startsWith(github.head_ref, 'release/') &&
98+
github.event.pull_request.base.ref == 'main')
99+
uses: Luxonis/tools/.github/workflows/unittests.yaml@main
100+
with:
101+
ml_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ml_ref || github.head_ref }}
102+
tools_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tools_ref || 'main' }}
103+
104+
test-datadreamer:
105+
name: Test Datadreamer
106+
if: ${{ inputs.run_datadreamer }}
107+
uses: Luxonis/datadreamer/.github/workflows/unit-tests.yaml@main
32108
with:
33-
ml_ref: ${{ inputs.ml_ref }}
34-
secrets: inherit
109+
ml_ref: ${{ inputs.ml_ref }}
110+
datadreamer_ref: ${{ inputs.datadreamer_ref }}

0 commit comments

Comments
 (0)