From 446d5f564926900d3f0039f6094e9a6a2d075574 Mon Sep 17 00:00:00 2001 From: Andrei Betlen Date: Wed, 1 Nov 2023 21:15:01 -0400 Subject: [PATCH] Add metal ci test --- .github/workflows/test.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index aca743b..9e81829 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -76,4 +76,24 @@ jobs: python3 -m pip install .[all] --verbose - name: Test with pytest run: | - python3 -m pytest \ No newline at end of file + python3 -m pytest + + build-macos-metal: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: "true" + - name: Set up Python 3.8 + uses: actions/setup-python@v4 + with: + python-version: "3.8" + - name: Install dependencies + run: | + python3 -m pip install --upgrade pip + CMAKE_ARGS="-DLLAMA_METAL=on" python3 -m pip install .[all] --verbose + - name: Test with pytest + run: | + python3 -m pytest