Skip to content

Commit

Permalink
Merge pull request #340 from project-alice-assistant/1.0.0-b4
Browse files Browse the repository at this point in the history
1.0.0 b4
  • Loading branch information
Psychokiller1888 committed Nov 7, 2020
2 parents 04fd9ef + 27c0feb commit c0deba5
Show file tree
Hide file tree
Showing 77 changed files with 2,349 additions and 997 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# This workflow will install Python dependencies and run tests with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Pytest and Sonarcloud analysis
name: Unittest & Quality

on:
push:
pull_request:

jobs:
test:
Expand All @@ -22,15 +21,15 @@ jobs:
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_test.txt
uses: py-actions/py-dependency-install@v2
with:
path: requirements_test.txt
- name: Install Portaudio
run: sudo apt-get install libportaudio2
- name: Tests
run: |
pytest tests/ --cov=core/ --cov-report=xml
run: pytest tests/ --cov=core/ --cov-report=xml
- name: Fix paths
run: |
sed -i 's/\/home\/runner\/work\/ProjectAlice\/ProjectAlice\//\/github\/workspace\//g' coverage.xml
run: sed -i 's/\/home\/runner\/work\/ProjectAlice\/ProjectAlice\//\/github\/workspace\//g' coverage.xml
- name: Sonarcloud scan
uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down
28 changes: 28 additions & 0 deletions .gitprefix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
:art: cleanup
:rocket: deploy
:pencil2: typo
:construction: WIP
:heavy_plus_sign: add dependency
:heavy_minus_sign: remove dependency
:speaker: add logs
:mute: remove logs
:bug: fix
:globe_with_meridians: i18n
:poop: crap
:boom: breaking
:beers: drunk coding
:lipstick: cosmetic
:lock: fix security issue
:heavy_exclamation_mark: woot
:white_check_mark: add test
:green_heart: fix ci
:recycle: refactor
:children_crossing: improve user experience
:wastebasket: deprecated
:see_no_evil: gitignore
:alien: api change
:sparkles: new feature
:wheelchair: improve accessibility
:zap: improve performance
:fire: remove code or file
:ambulance: hotfix
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<p align=center style="line-height: 2;">
<a href="LICENSE" target="_blank"><img src="https://img.shields.io/github/license/project-alice-assistant/ProjectAlice" alt="License" /></a>
<a href="https://discord.gg/Jfcj355" target="_blank"><img alt="Discord" src="https://img.shields.io/discord/579345007518154752?logo=discord"></a><br/>
<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>
<a href="https://zenhub.com"><img src="https://dxssrr2j0sq4w.cloudfront.net/3.2.0/img/external/zenhub-badge.png" alt="ZenHub logo"></a><br/>
<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>
<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>
<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>
Expand Down
16 changes: 13 additions & 3 deletions config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"mqtt",
"tts",
"wakeword",
"advanced debug"
"advanced debug",
"audio",
"scenarios"
]
},
"isSensitive" : {
Expand All @@ -66,11 +68,19 @@
},
"beforeUpdate": {
"type" : "string",
"pattern": "^[a-z].*$"
"pattern": "^(?:[A-Z][a-zA-Z]+\\.)?[a-z][a-zA-Z0-9]+$"
},
"onUpdate" : {
"type" : "string",
"pattern": "^[a-z].*$"
"pattern": "^(?:[A-Z][a-zA-Z]+\\.)?[a-z][a-zA-Z0-9]+$"
},
"onStart" : {
"type" : "string",
"pattern": "^(?:[A-Z][a-zA-Z]+\\.)?[a-z][a-zA-Z0-9]+$"
},
"onInit" : {
"type" : "string",
"pattern": "^(?:[A-Z][a-zA-Z]+\\.)?[a-z][a-zA-Z0-9]+$"
},
"parent" : {
"type" : "object",
Expand Down
Loading

0 comments on commit c0deba5

Please sign in to comment.