Skip to content

Commit

Permalink
test yml update for windows model download
Browse files Browse the repository at this point in the history
  • Loading branch information
spreka committed Nov 8, 2023
1 parent 8bdfe33 commit f9fc7ce
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/only_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,23 @@ jobs:
python -m pip install --upgrade pip
python -m pip install pytest pytest-cookies tox
- name: Download model
- name: Download model unix
working-directory: src
if: |
runner.os == 'Linux' ||
runner.os == 'Darwin'
run: |
wget -q -O models.zip https://github.com/spreka/annotatorj/releases/download/v0.0.2-model/models.zip && unzip models.zip;
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: Download model windows
working-directory: src
if: runner.os == 'Windows'
run: |
if not exist "napari_annotatorj/models/model_real_weights.h5" (
Invoke-WebRequest -uri https://github.com/spreka/annotatorj/releases/download/v0.0.2-model/models.zip -OutFile models.zip && Expand-Archive models.zip -DestinationPath napari_annotatorj/models/
)
- name: Cache
uses: actions/cache@v3
Expand Down

0 comments on commit f9fc7ce

Please sign in to comment.