8000 Add metal ci test · aniketmaurya/llama-cpp-python@446d5f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 446d5f5

Browse files
committed
Add metal ci test
1 parent c89eada commit 446d5f5

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/test.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,24 @@ jobs:
7676
python3 -m pip install .[all] --verbose
7777
- name: Test with pytest
7878
run: |
79-
python3 -m pytest
79+
python3 -m pytest
80+
81+
build-macos-metal:
82+
83+
runs-on: macos-latest
84+
85+
steps:
86+
- uses: actions/checkout@v3
87+
with:
88+
submodules: "true"
89+
- name: Set up Python 3.8
90+
uses: actions/setup-python@v4
91+
with:
92+
python-version: "3.8"
93+
- name: Install dependencies
94+
run: |
95+
python3 -m pip install --upgrade pip
96+
CMAKE_ARGS="-DLLAMA_METAL=on" python3 -m pip install .[all] --verbose
97+
- name: Test with pytest
98+
run: |
99+
python3 -m pytest

0 commit comments

Comments
 (0)
0