Skip to content

Merge pull request #2 from geekodour/dependabot/github_actions/action… #51

Merge pull request #2 from geekodour/dependabot/github_actions/action…

Merge pull request #2 from geekodour/dependabot/github_actions/action… #51

Workflow file for this run

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