mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-05-16 05:49:06 +02:00
cache dependencies and sleep
This commit is contained in:
@@ -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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user