-
Notifications
You must be signed in to change notification settings - Fork 33
46 lines (42 loc) · 1.18 KB
/
dispatch_CI.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
38
39
40
41
42
43
44
45
46
name: dispatch_CI
on:
workflow_dispatch:
inputs:
myCommit:
description: 'Commit SHA1'
required: true
default: 'undefined'
type: string
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9" ]
os: [ macos-latest ]
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.myCommit }}
- uses: ./.github/actions/setup-python-poetry
with:
python-version: ${{ matrix.python-version }}
poetry-version: 1.5.1
- name: Install dependencies
run: |
poetry lock --no-update
poetry install
poetry run pip install git+https://github.com/guillaumekln/faster-whisper
- name: Install ffmpeg
uses: FedericoCarboni/setup-ffmpeg@v2
id: setup-ffmpeg
- name: Add OpenAI key to environment variables
run: echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> $GITHUB_ENV
- name: Test with unittest
working-directory: ./tests
run: |
poetry run python -m unittest discover -s . -p 'test_*.py'