Skip to content

Commit 4324208

Browse files
committed
Add metal tests
1 parent 97c6332 commit 4324208

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/python.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
- { os: windows-latest, python-version: 3.10 }
8383
include:
8484
- { os: self-hosted, module: gpu, python-version: 3.9}
85+
- { os: macos-latest, module: metal, python-version: 3.10 }
8586

8687
steps:
8788
- name: Check out code
@@ -162,6 +163,10 @@ jobs:
162163
${{ env.SELF_HOST_PYTHON }} -m pytest --timeout=1500 \
163164
-W ignore::PendingDeprecationWarning \
164165
--cov-config=setup.cfg --cov-report=xml --cov=xinference xinference/model/audio/tests/test_chattts.py
166+
elif ["$MODULE" == "metal" ]; then
167+
pytest --timeout=1500 \
168+
-W ignore::PendingDeprecationWarning \
169+
--cov-config=setup.cfg --cov-report=xml --cov=xinference xinference/model/llm/mlx/tests/test_mlx.py
165170
else
166171
pytest --timeout=1500 \
167172
-W ignore::PendingDeprecationWarning \

0 commit comments

Comments
 (0)