-
Notifications
You must be signed in to change notification settings - Fork 49
51 lines (50 loc) · 1.49 KB
/
public-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
47
48
49
50
51
name: Unit and Functional Tests
run-name: commit-${{ github.sha }}
on:
workflow_dispatch:
schedule:
# Every Sunday at 10:00 UTC.
- cron: '00 10 * * 6'
jobs:
unit-tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 2
matrix:
os: [macos-14-xlarge] # , macos-13-xlarge]
python-version: [3.11] # [3.9, 3.11]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
# miniconda-version: "latest"
- name: Setup Conda Environment
shell: bash -el {0}
run: |
pip install -e .
pip install flake8
- name: Print system information
shell: bash -el {0}
run: |
$(which python) -c \
"from argmaxtools.test_utils import AppleSiliconContextMixin; \
print(AppleSiliconContextMixin().os_spec())"
- name: Word Timestamps Unit Tests
shell: bash -el {0}
run: |
TEST_DEV=cpu $(which python) -m unittest tests/test_word_timestamps.py
- name: Text Decoder Unit Tests
shell: bash -el {0}
run: |
TEST_DEV=cpu $(which python) tests/test_text_decoder.py
- name: Audio Encoder Unit Tests
shell: bash -el {0}
run: |
TEST_DEV=cpu $(which python) tests/test_audio_encoder.py
- name: Lint
shell: bash -el {0}
run: |
pip install flake8
$(which flake8) whisperkit tests