-
Notifications
You must be signed in to change notification settings - Fork 50
106 lines (98 loc) · 3.69 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
# 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
with:
platforms: linux/amd64,linux/arm64
util_tests:
strategy:
matrix:
python-version: [ 3.8, 3.9, '3.10', '3.11', '3.12' ]
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@v4
with:
name: skill-utils-test-results-${{ matrix.python-version }}
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@v4
with:
name: diagnostic-utils-test-results-${{ matrix.python-version }}
path: tests/diagnostic-utils-test-results.xml
unit_tests:
strategy:
matrix:
python-version: [ 3.8, 3.9, '3.10', '3.11', '3.12' ]
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@v4
with:
name: configuration-test-results-${{ matrix.python-version }}
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@v4
with:
name: language-test-results-${{ matrix.python-version }}
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@v4
with:
name: skills-module-test-results-${{ matrix.python-version }}
path: tests/skills-module-test-results.xml