@@ -51,19 +51,11 @@ jobs:
5151 path : ~/.cache/huggingface/hub
5252 key : ${{ runner.os }}-model-${{ env.REPO_ID }}-${{ env.MODEL_FILE }}
5353 - name : Install dependencies (Linux/MacOS)
54- if : runner.os != 'Windows'
5554 run : |
5655 python -m pip install --upgrade pip
5756 python -m pip install uv
5857 python -m uv pip install -e .[all] --verbose
5958 shell : bash
60- - name : Install dependencies (Windows)
61- if : runner.os == 'Windows'
62- run : |
63- python -m pip install --upgrade pip
64- python -m pip install uv
65- python -m uv pip install -e .[all] --verbose
66- shell : cmd
6759 - name : Test with pytest
6860 run : |
6961 python -m pytest
@@ -90,30 +82,21 @@ jobs:
9082 with :
9183 path : ~/.cache/huggingface/hub
9284 key : ${{ runner.os }}-model-${{ env.REPO_ID }}-${{ env.MODEL_FILE }}
93-
94- - name : Install dependencies (Linux/MacOS)
95- if : runner.os != 'Windows'
96- run : |
97- python -m pip install --upgrade pip
98- python -m pip install uv
99- python -m uv pip install -e .[all] --verbose
100- shell : bash
10185
10286 - name : Install dependencies (Windows)
103- if : runner.os == 'Windows'
10487 run : |
10588 python -m pip install --upgrade pip
10689 python -m pip install uv
10790 python -m uv pip install -e .[all] --verbose
108- shell : cmd
91+ shell : cmd
10992
11093 - name : Test with pytest
11194 run : |
11295 python -m pytest
11396
11497 build-macos :
11598 needs : download-model
116- runs-on : macos-latest
99+ runs-on : macos-13
117100 strategy :
118101 matrix :
119102 python-version : ["3.9", "3.10", "3.11", "3.12"]
@@ -128,35 +111,33 @@ jobs:
128111 python-version : ${{ matrix.python-version }}
129112 cache : ' pip'
130113
114+ - name : System Info
115+ run : |
116+ uname -a
117+ sysctl -n machdep.cpu.brand_string
118+ python3 -c "import platform; print(platform.machine(), platform.architecture())"
119+
131120 - name : Restore model cache
132121 uses : actions/cache@v4
133122 with :
134123 path : ~/.cache/huggingface/hub
135124 key : ${{ runner.os }}-model-${{ env.REPO_ID }}-${{ env.MODEL_FILE }}
136125
137126 - name : Install dependencies (Linux/MacOS)
138- if : runner.os != 'Windows'
139127 run : |
140- python -m pip install --upgrade pip
141- python -m pip install uv
142- python -m uv pip install -e .[all] --verbose
128+ python3 -m pip install --upgrade pip
129+ python3 -m pip install uv
130+ python3 -m uv pip install -e .[all] --verbose
131+ CMAKE_ARGS="-DLLAMA_METAL=off" python3 -m uv pip install .[all] --verbose
143132 shell : bash
144133
145- - name : Install dependencies (Windows)
146- if : runner.os == 'Windows'
147- run : |
148- python -m pip install --upgrade pip
149- python -m pip install uv
150- python -m uv pip install -e .[all] --verbose
151- shell : cmd
152-
153134 - name : Test with pytest
154135 run : |
155- python -m pytest
136+ python3 -m pytest
156137
157138 build-macos-metal :
158139 needs : download-model
159- runs-on : macos-latest
140+ runs-on : macos-13
160141 steps :
161142 - uses : actions/checkout@v4
162143 with :
@@ -167,25 +148,24 @@ jobs:
167148 with :
168149 python-version : " 3.9"
169150
151+ - name : System Info
152+ run : |
153+ uname -a
154+ sysctl -n machdep.cpu.brand_string
155+ python3 -c "import platform; print(platform.machine(), platform.architecture())"
156+
170157 - name : Restore model cache
171158 uses : actions/cache@v4
172159 with :
173160 path : ~/.cache/huggingface/hub
174161 key : ${{ runner.os }}-model-${{ env.REPO_ID }}-${{ env.MODEL_FILE }}
175162
176- - name : Install dependencies (Linux/MacOS)
177- if : runner.os != 'Windows'
163+ - name : Install dependencies
178164 run : |
179- python -m pip install --upgrade pip
180- python -m pip install uv
181- CMAKE_ARGS="-DLLAMA_METAL=on" python -m uv pip install .[all] --verbose
165+ python3 -m pip install --upgrade pip
166+ CMAKE_ARGS="-DLLAMA_METAL=on" python3 -m pip install .[all] --verbose
182167 shell : bash
183168
184- - name : Install dependencies (Windows)
185- if : runner.os == 'Windows'
186- run : |
187- python -m pip install --upgrade pip
188- CMAKE_ARGS="-DGGML_METAL=on" python -m pip install .[all] --verbose
189169 - name : Test with pytest
190170 run : |
191- python -m pytest
171+ python3 -m pytest
0 commit comments