Use curl to fetch model only if git lfs is not available (#4) #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.10"] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
PROJECT_ROOT: ${{github.workspace}} | |
WSCRIBE_MODELS_DIR: ${{github.workspace}}/models | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache whisper model | |
id: cache-whisper-model | |
uses: actions/cache@v3 | |
with: | |
key: "tiny" # static key, always cache hit, manually invalidate | |
path: ${{env.WSCRIBE_MODELS_DIR}} | |
- if: ${{ steps.cache-whisper-model.outputs.cache-hit != 'true' }} | |
name: download whisper model | |
run: | | |
./scripts/fw_dw_hf_wo_lfs.sh tiny | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- run: poetry install | |
- run: poetry run make spin |