forked from OpenVoiceOS/ovos-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.03 KB
/
unit_tests.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
# This workflow will run unit tests
name: Run Unit Tests
on:
pull_request:
push:
workflow_dispatch:
jobs:
unit_tests:
strategy:
max-parallel: 2
matrix:
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[extras]
pip install pytest pytest-timeout pytest-cov
- name: Test Utils
run: |
pytest test/test_utils.py
- name: Test Color Utils
run: |
pytest test/test_color.py
- name: Test Json Helpers
run: |
pytest test/test_json_helpers.py
- name: Test Parse Utils
run: |
pytest test/test_parse.py
- name: Test SSML Utils
run: |
pytest test/test_ssml.py