-
Notifications
You must be signed in to change notification settings - Fork 50
101 lines (99 loc) · 3.69 KB
/
setup_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
# This workflow will run unit tests
name: Test Installation
on:
pull_request:
workflow_dispatch:
jobs:
core_and_skills:
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout neon-core
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install System Dependencies
run: |
sudo apt update
sudo apt install -y gcc libfann-dev swig libssl-dev portaudio19-dev git libpulse-dev python3-dev
pip install wheel
- name: Test Core Module Installation
run: |
pip install .[core_modules]
- name: Test Skills Installation
run: |
pip install .[skills_required,skills_essential,skills_default,skills_extended]
pi_image_3_10:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Checkout neon-core
uses: actions/checkout@v4
- name: Restore base image cache
uses: actions/cache@v3
id: image-cache
with:
path: ${{ github.workspace }}/pi_image_3.img.xz
key: ${{ runner.os }}-pi_image_3.img.xz-v1
- name: Ensure base image files are pulled
if: steps.image-cache.outputs.cache-hit != 'true'
run: wget https://2222.us/app/files/neon_images/test_images/pi_image_3.img.xz -O ${{ github.workspace }}/pi_image_3.img.xz
- name: Save base image Cache
if: steps.image-cache.outputs.cache-hit != 'true'
id: image-cache-save
uses: actions/cache/save@v3
with:
path: ${{ github.workspace }}/pi_image_3.img.xz
key: ${{ runner.os }}-pi_image_3.img.xz-v1
- name: Test chroot installation
uses: pguyot/arm-runner-action@v2
with:
optimize_image: false
base_image: file://${{ github.workspace }}/pi_image_3.img.xz
cpu: cortex-a53
copy_repository_path: /core
commands: |
bash /core/test/pi_setup_3_10.sh || exit 2
. /core/venv/bin/activate || exit 2
neon-audio init-plugin -p coqui || exit 2
neon-speech init-plugin -p neon-stt-plugin-nemo || exit 2
pi_image_3_11:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Checkout neon-core
uses: actions/checkout@v4
- name: Restore base image cache
uses: actions/cache@v3
id: image-cache
with:
path: ${{ github.workspace }}/pi_image_3.img.xz
key: ${{ runner.os }}-pi_image_3.img.xz-v1
- name: Ensure base image is pulled
if: steps.image-cache.outputs.cache-hit != 'true'
run: wget https://2222.us/app/files/neon_images/test_images/pi_image_3.img.xz -O ${{ github.workspace }}/pi_image_3.img.xz
- name: Save base image Cache
if: steps.image-cache.outputs.cache-hit != 'true'
id: image-cache-save
uses: actions/cache/save@v3
with:
path: ${{ github.workspace }}/pi_image_3.img.xz
key: ${{ runner.os }}-pi_image_3.img.xz-v1
- name: Test chroot installation
uses: pguyot/arm-runner-action@v2
with:
optimize_image: false
base_image: file://${{ github.workspace }}/pi_image_3.img.xz
cpu: cortex-a53
copy_repository_path: /core
commands: |
bash /core/test/pi_setup_3_11.sh || exit 2
. /core/venv/bin/activate || exit 2
neon-audio init-plugin -p coqui || exit 2
neon-speech init-plugin -p neon-stt-plugin-nemo || exit 2