Skip to content

Commit

Permalink
ci: Download onnx file for test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcojob committed Nov 12, 2024
1 parent 063990b commit 5d022f8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ jobs:
submodules: recursive
set-safe-directory: true

# Step to download the ONNX file from Google Drive link
- name: Download ONNX model file
env:
ONNX_FILE_URL: ${{ secrets.DEPTH_ANYTHING_V2_VITS_LINK }}
run: |
# Create directory if it doesn't exist
mkdir -p tests/resources
# Extract Google Drive file ID from URL
FILE_ID=$(echo "$ONNX_FILE_URL" | sed -E 's|.*?/d/([^/]+).*|\1|')
# Download the file using Google Drive link and file ID
curl -L -o tests/resources/model.onnx "https://drive.google.com/uc?export=download&id=${FILE_ID}"
- name: Run ${{ matrix.ci_script }}
run: |
bash -x ./ci/${{ matrix.ci_script }}.sh

0 comments on commit 5d022f8

Please sign in to comment.