-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (36 loc) · 1020 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- run: poetry install
- run: poetry run make spin