Skip to content

Commit 467bafb

Browse files
authored
CI: Requirements check before release (#331)
1 parent b11a81b commit 467bafb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,14 @@ jobs:
237237
fail_ci_if_error: false
238238

239239

240-
check-release-requirements:
240+
check-requirements:
241241
if: ${{ startsWith(github.head_ref, 'release/') }}
242242
runs-on: ubuntu-latest
243243

244+
strategy:
245+
matrix:
246+
submodule: [ 'data', 'nn_archive', 'utils' ]
247+
244248
steps:
245249
- name: Checkout
246250
uses: actions/checkout@v4
@@ -254,12 +258,7 @@ jobs:
254258
cache: pip
255259

256260
- name: Install the package
257-
run: pip install -e .[all]
261+
run: pip install -e .[${{ matrix.submodule }}]
258262

259263
- name: Check requirements
260-
run: |
261-
python3 <<EOF
262-
from luxonis_ml.data import *
263-
from luxonis_ml.utils import *
264-
from luxonis_ml.nn_archive import *
265-
EOF
264+
run: python3 -c 'from luxonis_ml.${{ matrix.submodule }} import *'

luxonis_ml/data/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ bidict~=0.21
1111
gdown~=4.7
1212
defusedxml~=0.7
1313
pillow-heif<0.22.0
14+
matplotlib~=3.10

0 commit comments

Comments
 (0)