Skip to content

Commit c0deba5

Browse files
Merge pull request #340 from project-alice-assistant/1.0.0-b4
1.0.0 b4
2 parents 04fd9ef + 27c0feb commit c0deba5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2349
-997
lines changed

.github/workflows/pytest.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# This workflow will install Python dependencies and run tests with a single version of Python
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Pytest and Sonarcloud analysis
4+
name: Unittest & Quality
55

66
on:
77
push:
8-
pull_request:
98

109
jobs:
1110
test:
@@ -22,15 +21,15 @@ jobs:
2221
with:
2322
python-version: 3.7
2423
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install -r requirements_test.txt
24+
uses: py-actions/py-dependency-install@v2
25+
with:
26+
path: requirements_test.txt
27+
- name: Install Portaudio
28+
run: sudo apt-get install libportaudio2
2829
- name: Tests
29-
run: |
30-
pytest tests/ --cov=core/ --cov-report=xml
30+
run: pytest tests/ --cov=core/ --cov-report=xml
3131
- name: Fix paths
32-
run: |
33-
sed -i 's/\/home\/runner\/work\/ProjectAlice\/ProjectAlice\//\/github\/workspace\//g' coverage.xml
32+
run: sed -i 's/\/home\/runner\/work\/ProjectAlice\/ProjectAlice\//\/github\/workspace\//g' coverage.xml
3433
- name: Sonarcloud scan
3534
uses: sonarsource/sonarcloud-github-action@master
3635
env:

.gitprefix

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
:art: cleanup
2+
:rocket: deploy
3+
:pencil2: typo
4+
:construction: WIP
5+
:heavy_plus_sign: add dependency
6+
:heavy_minus_sign: remove dependency
7+
:speaker: add logs
8+
:mute: remove logs
9+
:bug: fix
10+
:globe_with_meridians: i18n
11+
:poop: crap
12+
:boom: breaking
13+
:beers: drunk coding
14+
:lipstick: cosmetic
15+
:lock: fix security issue
16+
:heavy_exclamation_mark: woot
17+
:white_check_mark: add test
18+
:green_heart: fix ci
19+
:recycle: refactor
20+
:children_crossing: improve user experience
21+
:wastebasket: deprecated
22+
:see_no_evil: gitignore
23+
:alien: api change
24+
:sparkles: new feature
25+
:wheelchair: improve accessibility
26+
:zap: improve performance
27+
:fire: remove code or file
28+
:ambulance: hotfix

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<p align=center style="line-height: 2;">
77
<a href="LICENSE" target="_blank"><img src="https://img.shields.io/github/license/project-alice-assistant/ProjectAlice" alt="License" /></a>
88
<a href="https://discord.gg/Jfcj355" target="_blank"><img alt="Discord" src="https://img.shields.io/discord/579345007518154752?logo=discord"></a><br/>
9+
<a href="https://github.com/project-alice-assistant/ProjectAlice/actions?query=workflow%3A%22Unittest+%26+Quality%22"><img alt="Tests" src="https://github.com/project-alice-assistant/ProjectAlice/workflows/Unittest%20&%20Quality/badge.svg"></a>
10+
<a href="https://zenhub.com"><img src="https://dxssrr2j0sq4w.cloudfront.net/3.2.0/img/external/zenhub-badge.png" alt="ZenHub logo"></a><br/>
911
<a href="https://sonarcloud.io/dashboard?id=project-alice-assistant_ProjectAlice" target="_blank"><img alt="Coverage Status" src="https://sonarcloud.io/api/project_badges/measure?project=project-alice-assistant_ProjectAlice&metric=coverage"></a>
1012
<a href="https://sonarcloud.io/dashboard?id=project-alice-assistant_ProjectAlice" target="_blank"><img alt="Maintainability" src="https://sonarcloud.io/api/project_badges/measure?project=project-alice-assistant_ProjectAlice&metric=sqale_rating"></a>
1113
<a href="https://sonarcloud.io/dashboard?id=project-alice-assistant_ProjectAlice" target="_blank"><img alt="Code Smells" src="https://sonarcloud.io/api/project_badges/measure?project=project-alice-assistant_ProjectAlice&metric=code_smells"></a>

config-schema.json

+13-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
"mqtt",
4545
"tts",
4646
"wakeword",
47-
"advanced debug"
47+
"advanced debug",
48+
"audio",
49+
"scenarios"
4850
]
4951
},
5052
"isSensitive" : {
@@ -66,11 +68,19 @@
6668
},
6769
"beforeUpdate": {
6870
"type" : "string",
69-
"pattern": "^[a-z].*$"
71+
"pattern": "^(?:[A-Z][a-zA-Z]+\\.)?[a-z][a-zA-Z0-9]+$"
7072
},
7173
"onUpdate" : {
7274
"type" : "string",
73-
"pattern": "^[a-z].*$"
75+
"pattern": "^(?:[A-Z][a-zA-Z]+\\.)?[a-z][a-zA-Z0-9]+$"
76+
},
77+
"onStart" : {
78+
"type" : "string",
79+
"pattern": "^(?:[A-Z][a-zA-Z]+\\.)?[a-z][a-zA-Z0-9]+$"
80+
},
81+
"onInit" : {
82+
"type" : "string",
83+
"pattern": "^(?:[A-Z][a-zA-Z]+\\.)?[a-z][a-zA-Z0-9]+$"
7484
},
7585
"parent" : {
7686
"type" : "object",

0 commit comments

Comments
 (0)