Skip to content

Commit

Permalink
ci: server: fix python env
Browse files Browse the repository at this point in the history
  • Loading branch information
phymbert committed Apr 26, 2024
1 parent 59dc01c commit 7964d09
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ jobs:
xxd \
git \
cmake \
python3-pip \
python3-venv \
python3-setuptools \
curl \
wget \
language-pack-en \
Expand All @@ -72,6 +69,18 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha || github.head_ref || github.ref_name }}

- name: Python setup
id: setup_python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install tests dependencies
id: pip_install
run: |
cd examples/server/tests
pip install -r requirements.txt
- name: Verify server deps
id: verify_server_deps
run: |
Expand Down Expand Up @@ -102,13 +111,6 @@ jobs:
-DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON ;
cmake --build . --config ${{ matrix.build_type }} -j $(nproc) --target server
- name: Setup python env
id: pipenv
run: |
cd examples/server/tests
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- name: Tests
id: server_integration_tests
Expand Down

0 comments on commit 7964d09

Please sign in to comment.