Skip to content

build_mac: auto-publish DMG to latest GitHub Release after build #28

build_mac: auto-publish DMG to latest GitHub Release after build

build_mac: auto-publish DMG to latest GitHub Release after build #28

Workflow file for this run

name: Mac smoke test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-mac:
runs-on: macos-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements_mac.txt
- name: Download base Whisper model
run: |
python - <<'EOF'
from huggingface_hub import snapshot_download
import os
dest = os.path.join(os.path.dirname(os.path.abspath('.')), 'Hotkeys', 'models', 'base')
os.makedirs('models/base', exist_ok=True)
snapshot_download('Systran/faster-whisper-base',
local_dir='models/base',
local_dir_use_symlinks=False)
print('Model downloaded.')
EOF
- name: Run headless smoke test
run: python tests/test_mac_smoke.py
- name: Upload log on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: mac-smoke-log
path: smoke_test.log