Skip to content

Commit

Permalink
set env and run integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: greg pereira <[email protected]>
  • Loading branch information
Gregory-Pereira committed May 2, 2024
1 parent bf9261c commit c9b6fa5
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions training/provision/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,32 @@
- name: check ilab exists
shell: which ilab; pwd

- name: Install Python
raw: |
sudo dnf install -y python3.11 git make cmake
- name: Clone the repository
git:
repo: https://github.com/stefwalter/instructlab.git
dest: /tmp
version: container-testing


- name: Install python deps
shell: |
cd /tmp/instructlab
python3 -m venv venv
. venv/bin/activate
sed 's/\[.*\]//' requirements.txt > constraints.txt
python3 -m pip cache remove llama_cpp_python
CMAKE_ARGS="-DLLAMA_CUBLAS=on" python3 -m pip install --no-binary llama_cpp_python -c constraints.txt llama_cpp_python
python3 -m pip install bitsandbytes
python3 -m pip install .
- name: Run the integration tests
shell: |
source /tmp/instructlab/venv/bin/activate
/tmp/instructlab/scripts/basic-workflow-tests.sh -cm
# - name: run the integration tests
# shell: |
# curl -sLO /tmp https://raw.githubusercontent.com/stefwalter/instructlab/container-testing/scripts/basic-workflow-tests.sh

0 comments on commit c9b6fa5

Please sign in to comment.