diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2583f351b..1f5dfc6f7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,15 +55,13 @@ jobs: with: python-version: ${{ matrix.python_version }} - - name: Install Git - run: | - apt update && apt install -y git - - name: ⏬️ Install Dependencies env: DEBIAN_FRONTEND: noninteractive run: | - apt update && apt install -y libegl1 sqlite3 libsqlite3-dev libsqlite3-0 ffmpeg libsm6 libxext6 + apt update && apt install -y git libegl1 sqlite3 libsqlite3-dev libsqlite3-0 ffmpeg libsm6 libxext6 + # required by llama-cpp-python prebuilt wheels + apt install -y musl-dev && ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1 - name: ⬇️ Install Postgres env: @@ -78,6 +76,9 @@ jobs: python -m pip install --upgrade pip - name: ⬇️ Install Application + env: + PIP_EXTRA_INDEX_URL: "https://download.pytorch.org/whl/cpu https://abetlen.github.io/llama-cpp-python/whl/cpu" + CUDA_VISIBLE_DEVICES: "" run: sed -i 's/dynamic = \["version"\]/version = "0.0.0"/' pyproject.toml && pip install --upgrade .[dev] - name: 🧪 Test Application