From e0fc03661e24ef6d362736ff38be996a31ffab6f Mon Sep 17 00:00:00 2001 From: Adam Wilson Date: Mon, 19 May 2025 07:51:18 -0600 Subject: [PATCH] cache dependencies and sleep --- .github/workflows/llmsecops-cicd.llm.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/llmsecops-cicd.llm.yml b/.github/workflows/llmsecops-cicd.llm.yml index 071eb9fd6..899a1409b 100644 --- a/.github/workflows/llmsecops-cicd.llm.yml +++ b/.github/workflows/llmsecops-cicd.llm.yml @@ -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/