Skip to content

Commit bf5a864

Browse files
authored
v1.0.0
Skill Rewrite with Unit Tests, Mycroft/ovos-core support, Python Packaging
2 parents 50df904 + 28ddaa2 commit bf5a864

File tree

137 files changed

+5978
-1450
lines changed

Some content is hidden

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

137 files changed

+5978
-1450
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will generate a release distribution and upload it to PyPI
2+
3+
name: Publish Build and GitHub Release
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
tag_release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Get Version
15+
run: |
16+
VERSION=$(python setup.py --version)
17+
echo "VERSION=${VERSION}" >> $GITHUB_ENV
18+
- uses: ncipollo/release-action@v1
19+
with:
20+
token: ${{secrets.GITHUB_TOKEN}}
21+
tag: ${{env.VERSION}}
22+
build_and_publish:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- name: Setup Python
27+
uses: actions/setup-python@v1
28+
with:
29+
python-version: 3.8
30+
- name: Install Build Tools
31+
run: |
32+
python -m pip install build wheel
33+
34+
- name: Build Distribution Packages
35+
run: |
36+
python setup.py bdist_wheel
37+
- name: Publish to PyPI
38+
uses: pypa/gh-action-pypi-publish@master
39+
with:
40+
password: ${{secrets.PYPI_TOKEN}}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will generate a distribution and upload it to PyPI
2+
3+
name: Publish Alpha Build
4+
on:
5+
push:
6+
branches:
7+
- dev
8+
paths-ignore:
9+
- 'version.py'
10+
11+
jobs:
12+
build_and_publish:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
ref: ${{ github.head_ref }}
18+
- name: Setup Python
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: 3.8
22+
- name: Install Build Tools
23+
run: |
24+
python -m pip install build wheel
25+
- name: Increment Version
26+
run: |
27+
VER=$(python setup.py --version)
28+
python version_bump.py
29+
- name: Push Version Change
30+
uses: stefanzweifel/git-auto-commit-action@v4
31+
with:
32+
commit_message: Increment Version
33+
- name: Build Distribution Packages
34+
run: |
35+
python setup.py bdist_wheel
36+
- name: Publish to PyPI
37+
uses: pypa/gh-action-pypi-publish@master
38+
with:
39+
password: ${{secrets.PYPI_TOKEN}}

.github/workflows/request_review.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/skill_tests.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# This workflow will run unit tests
2+
3+
name: Test Skill
4+
on:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build_tests:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup Python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.8
17+
- name: Install Build Tools
18+
run: |
19+
python -m pip install build wheel
20+
- name: Build Distribution Packages
21+
run: |
22+
python setup.py bdist_wheel
23+
neon_core:
24+
strategy:
25+
matrix:
26+
python-version: [ 3.7, 3.8, 3.9, '3.10' ]
27+
runs-on: ubuntu-latest
28+
timeout-minutes: 15
29+
steps:
30+
- uses: actions/checkout@v2
31+
- name: Set up python ${{ matrix.python-version }}
32+
uses: actions/setup-python@v2
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
- name: Install Dependencies
36+
run: |
37+
sudo apt install -y gcc libfann-dev swig libssl-dev portaudio19-dev git libpulse-dev
38+
pip install --upgrade pip
39+
pip install pytest mock git+https://github.com/NeonGeckoCom/NeonCore#egg=neon_core
40+
pip install -r requirements.txt
41+
- name: Test Skill
42+
run: |
43+
pytest test/test_skill.py
44+
ovos-core:
45+
strategy:
46+
matrix:
47+
python-version: [ 3.8 ]
48+
runs-on: ubuntu-latest
49+
timeout-minutes: 15
50+
steps:
51+
- uses: actions/checkout@v2
52+
- name: Set up python ${{ matrix.python-version }}
53+
uses: actions/setup-python@v2
54+
with:
55+
python-version: ${{ matrix.python-version }}
56+
- name: Install Dependencies
57+
run: |
58+
sudo apt update
59+
sudo apt install -y gcc libfann-dev swig libssl-dev portaudio19-dev git libpulse-dev
60+
pip install --upgrade pip
61+
pip install ovos-core[skills] pytest mock
62+
pip install -r requirements.txt
63+
- name: Test Skill
64+
run: |
65+
pytest test/test_skill.py
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will run unit tests
2+
3+
name: Update skill.json
4+
on:
5+
push:
6+
7+
jobs:
8+
update_skill_json:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 15
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v2
14+
with:
15+
path: action/skill/
16+
- name: Set up python 3.8
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.8
20+
- name: Install Dependencies
21+
run: |
22+
sudo apt update
23+
sudo apt install -y gcc git libpulse-dev
24+
pip install --upgrade pip
25+
pip install neon-utils\~=0.17 ovos-skills-manager
26+
- name: Get Updated skill.json
27+
run: |
28+
python action/skill/scripts/update_skill_json.py
29+
- name: Push skill.json Change
30+
uses: stefanzweifel/git-auto-commit-action@v4
31+
with:
32+
commit_message: Update skill.json
33+
repository: action/skill/

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
*.yml
21
!settingsmeta.yml
32
*.lock
43
.idea/

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# NEON AI (TM) SOFTWARE, Software Development Kit & Application Development System
2+
# All trademark and other rights reserved by their respective owners
3+
# Copyright 2008-2021 Neongecko.com Inc.
4+
# BSD-3 License
5+
6+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
7+
following conditions are met:
8+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
9+
disclaimer.
10+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
11+
disclaimer in the documentation and/or other materials provided with the distribution.
12+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products
13+
derived from this software without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
16+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
20+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
21+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ This skill has known intent collisions with the following skills:
8282
- [mycroft-timer.mycroftAI](https://github.com/mycroftai/mycroft-timer)
8383

8484
## Credits
85-
@NeonGeckoCom
86-
@NeonDaniel
85+
[NeonGeckoCom](https://github.com/NeonGeckoCom)
86+
[NeonDaniel](https://github.com/NeonDaniel)
8787

8888
## Category
8989
**Productivity**
9090
Daily
9191

9292
## Tags
93-
#NeonGecko
93+
#NeonGecko Original
9494
#NeonAI
9595
#alert
9696
#alarm

0 commit comments

Comments
 (0)