From a7514f87a33a38917dd7cc99c045a7f4895f912c Mon Sep 17 00:00:00 2001 From: spreka Date: Wed, 8 Nov 2023 14:59:37 +0100 Subject: [PATCH] adding model file download and cache to test yml --- .github/workflows/only_test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/only_test.yml b/.github/workflows/only_test.yml index 2623333..8d3eb2e 100644 --- a/.github/workflows/only_test.yml +++ b/.github/workflows/only_test.yml @@ -59,6 +59,20 @@ jobs: python -m pip install --upgrade pip python -m pip install pytest pytest-cookies tox + - name: Download model + working-directory: src + run: | + if [[ ! -f napari_annotatorj/models/model_real_weights.h5 ]]; then + wget -q -O models.zip https://github.com/spreka/annotatorj/releases/download/v0.0.2-model/models.zip && unzip models.zip; + fi + + - name: Cache + uses: actions/cache@v2 + with: + path: | + src/napari_annotatorj/models + key: full-data + # this runs the platform-specific tests declared in tox.ini #GabrielBB/xvfb-action@v1 #aganders3/headless-gui@v1