cache dependencies and sleep

This commit is contained in:
Adam Wilson
2025-05-19 07:51:18 -06:00
parent 2b9a591bc7
commit e0fc03661e
+16
View File
@@ -22,6 +22,21 @@ jobs:
run: |
pip install -r ${{ github.workspace }}/requirements.txt
- name: Cache pip dependencies
uses: actions/cache@v3
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-lightboker-llmsecopsresearch
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: 'set up Microsoft Phi-3 Mini 4k LLM from HuggingFace'
run: |
pip install huggingface-hub[cli]
@@ -36,6 +51,7 @@ jobs:
shell: bash
run: |
nohup python -m src.api.controller &
sleep 60
curl -i http://localhost:9999/