Skip to content

Commit 6de49c7

Browse files
committed
Run ML tests in CI
1 parent d103737 commit 6de49c7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,20 @@ jobs:
8181
- name: Run tests
8282
run: mix test --exclude ml
8383

84+
- name: Restore model cache
85+
if: matrix.lint
86+
uses: actions/cache@v5
87+
with:
88+
path: |
89+
~/.cache/image_vision
90+
~/.cache/bumblebee
91+
key: models-v1-${{ hashFiles('lib/detection.ex', 'lib/segmentation.ex', 'lib/classification.ex') }}
92+
93+
- name: Run ML tests
94+
if: matrix.lint
95+
run: mix test --only ml
96+
timeout-minutes: 30
97+
8498
- name: Verify hex package builds
8599
if: matrix.lint
86100
run: mix hex.build

0 commit comments

Comments
 (0)