Skip to content

Commit 83feb50

Browse files
marcelklehrbackportbot[bot]
authored andcommitted
fix(tests): Fix caching of llm2 models
Create a directory for persistent storage and update cache path Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 6a25ad5 commit 83feb50

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/integration_test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,15 @@ jobs:
150150
sudo apt-get update
151151
sudo apt install pipx
152152
pipx install poetry
153+
mkdir -p ../llm2-persistent_storage
153154
poetry install
154155
155156
- name: Cache llm2 models
156157
uses: actions/cache@v5
157158
env:
158159
cache-name: cache-llm2-models
159160
with:
160-
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
161+
path: llm2-persistent_storage/
161162
key: ${{ runner.os }}-llm2-models-${{ env.cache-name }}-${{ hashFiles('llm2/lib/main.py') }}
162163

163164
- name: Init llm2
@@ -167,7 +168,7 @@ jobs:
167168
APP_PORT: 9080
168169
APP_VERSION: ${{ fromJson(steps.llm2_appinfo.outputs.result).version }}
169170
run: |
170-
poetry run python3 main.py > ../logs 2>&1 &
171+
APP_PERSISTENT_STORAGE="$(pwd)/../../llm2-persistent-storage/" poetry run python3 main.py > ../logs 2>&1 &
171172
172173
- name: Register backend
173174
run: |

0 commit comments

Comments
 (0)