summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierrick Hymbert <pierrick.hymbert@gmail.com>2024-04-26 11:11:51 +0200
committerGitHub <noreply@github.com>2024-04-26 11:11:51 +0200
commit9e4e077ec50fde6049b128662c72d37a3c28e34b (patch)
tree18763b5146dccf79db94452149ffc8a553d0addc
parent83b72cb086ce46a33dececc86bfe4648b6120aa8 (diff)
ci: server: fix python installation (#6922)
-rw-r--r--.github/workflows/server.yml16
1 files changed, 7 insertions, 9 deletions
diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml
index 955fd9a5..67bbe6cb 100644
--- a/.github/workflows/server.yml
+++ b/.github/workflows/server.yml
@@ -58,6 +58,7 @@ jobs:
git \
cmake \
python3-pip \
+ python3-venv \
curl \
wget \
language-pack-en \
@@ -100,16 +101,13 @@ jobs:
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON ;
cmake --build . --config ${{ matrix.build_type }} -j $(nproc) --target server
- - name: Python setup
- id: setup_python
- uses: actions/setup-python@v5
- with:
- python-version: '3.11'
-
- - name: Tests dependencies
- id: test_dependencies
+ - name: Setup python env
+ id: pipenv
run: |
- pip install -r examples/server/tests/requirements.txt
+ cd examples/server/tests
+ python3 -m venv venv
+ source venv/bin/activate
+ pip install -r requirements.txt
- name: Tests
id: server_integration_tests