-
Notifications
You must be signed in to change notification settings - Fork 50
113 lines (104 loc) · 3.84 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# This workflow will run unit tests
name: Test Core Modules
on:
pull_request:
workflow_dispatch:
jobs:
py_build_tests:
uses: neongeckocom/.github/.github/workflows/python_build_tests.yml@master
with:
python_version: "3.8"
docker_build_tests:
uses: neongeckocom/.github/.github/workflows/docker_build_tests.yml@master
util_tests:
strategy:
matrix:
python-version: [ 3.7, 3.8, 3.9, '3.10' ]
runs-on: ubuntu-latest
timeout-minutes: 15
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: |
sudo apt update
sudo apt install -y gcc libfann-dev swig libssl-dev portaudio19-dev git libpulse-dev
pip install wheel
pip install . -r requirements/test.txt
env:
GITHUB_TOKEN: ${{secrets.neon_token}}
- name: Test Skill Utils
run: |
pytest test/test_skill_utils.py --doctest-modules --junitxml=tests/skill-utils-test-results.xml
env:
GITHUB_TOKEN: ${{secrets.neon_token}}
- name: Upload Skill Utils test results
uses: actions/upload-artifact@v2
with:
name: skill-utils-test-results
path: tests/skill-utils-test-results.xml
- name: Test Diagnostic Utils
run: |
pytest test/test_diagnostic_utils.py --doctest-modules --junitxml=tests/diagnostic-utils-test-results.xml
env:
GITHUB_TOKEN: ${{secrets.neon_token}}
- name: Upload Diagnostic Utils test results
uses: actions/upload-artifact@v2
with:
name: diagnostic-utils-test-results
path: tests/diagnostic-utils-test-results.xml
unit_tests:
strategy:
matrix:
python-version: [ 3.7, 3.8, 3.9, '3.10' ]
runs-on: ubuntu-latest
timeout-minutes: 15
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: |
sudo apt update
sudo apt install -y gcc libfann-dev swig libssl-dev portaudio19-dev git libpulse-dev
pip install wheel
pip install . -r requirements/test.txt
env:
GITHUB_TOKEN: ${{secrets.neon_token}}
- name: Test Configuration Module
run: |
pytest test/test_configuration.py --doctest-modules --junitxml=tests/configuration-test-results.xml
- name: Upload Configuration test results
uses: actions/upload-artifact@v2
with:
name: configuration-test-results
path: tests/configuration-test-results.xml
- name: Test Language
run: |
pytest test/test_language.py --doctest-modules --junitxml=tests/language-test-results.xml
- name: Upload Language test results
uses: actions/upload-artifact@v2
with:
name: language-test-results
path: tests/language-test-results.xml
- name: Test Skills Module
run: |
pytest test/test_skills_module.py --doctest-modules --junitxml=tests/skills-module-test-results.xml
- name: Upload Language test results
uses: actions/upload-artifact@v2
with:
name: skills-module-test-results
path: tests/skills-module-test-results.xml
- name: Test Resource Resolution
run: |
pytest test/test_res.py --doctest-modules --junitxml=tests/resource-resolution-test-results.xml
- name: Upload Resource Resolution test results
uses: actions/upload-artifact@v2
with:
name: resource-resolution-test-results
path: tests/resource-resolution-test-results.xml